v0.34.0_12
This commit is contained in:
1 parent
943d51b528
commit
9f20d5195e
14 files changed
+198
-57
No files matched your search
@@ -282,6 +282,22 @@ fn finish_headers(
|
||||
crate::http3::advertise(response.headers_mut(), local, tls, active);
|
||||
}
|
||||
}
|
||||
fn attach_origin_diagnostics(
|
||||
response: &mut Response,
|
||||
frontend: Option<&crate::config::CompiledFrontend>,
|
||||
elapsed: Duration,
|
||||
backend_id: &str,
|
||||
) {
|
||||
if let Some(frontend) = frontend {
|
||||
if frontend.timing_headers || frontend.backend_timing_header {
|
||||
response.extensions_mut().insert(OriginTiming(elapsed));
|
||||
}
|
||||
if frontend.backend_header {
|
||||
response.extensions_mut().insert(OriginBackend(backend_id.to_owned()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn apply_timing_headers(
|
||||
response: &mut Response,
|
||||
frontend: Option<&crate::config::CompiledFrontend>,
|
||||
|
||||
Reference in new issue
Block a user