pub fn log_response(
status: u16,
duration_ms: u128,
headers: Option<&HeaderMap>,
body: Option<&str>,
max_body_len: usize,
secret_ctx: Option<&SecretContext>,
)Expand description
Logs an HTTP response with optional headers and body
ยงArguments
status- HTTP status codeduration_ms- Request duration in millisecondsheaders- Optional response headers (sensitive headers will be redacted)body- Optional response bodymax_body_len- Maximum body length to log before truncationsecret_ctx- Optional context for dynamic secret redaction