This commit is contained in:
Mateusz Gruszczyński committed 2026-10-08 22:22:46 +02:00
1 parent 76cb4acef0
commit 68678e98be
84 files changed
+1519 -325

No files matched your search

+20
View File
@@ -5,6 +5,25 @@ pub(super) async fn php_response(
headers: HeaderMap,
original_uri: Uri,
script_path: String,
path_info: Option<String>,
query: Option<String>,
body: Body,
context: RequestContext,
) -> Response {
let start = Instant::now();
let response = php_response_inner( service, php, method, headers, original_uri, script_path, path_info, query, body, context).await;
php.metrics.record(response.status(), start.elapsed().as_micros().min(u64::MAX as u128) as u64);
response
}
async fn php_response_inner(
service: &CompiledService,
php: &CompiledPhp,
method: Method,
headers: HeaderMap,
original_uri: Uri,
script_path: String,
path_info: Option<String>,
query: Option<String>,
body: Body,
context: RequestContext,
@@ -45,6 +64,7 @@ pub(super) async fn php_response(
&headers,
&original_uri,
&script_path,
path_info.as_deref(),
query.as_deref(),
&context,
) {