Skip to main content

log_request

Function log_request 

Source
pub fn log_request(
    method: &str,
    url: &str,
    headers: Option<&HeaderMap>,
    body: Option<&str>,
    secret_ctx: Option<&SecretContext>,
)
Expand description

Logs an HTTP request with optional headers and body

ยงArguments

  • method - HTTP method (GET, POST, etc.)
  • url - Request URL (sensitive query params will be redacted)
  • headers - Optional request headers (sensitive headers will be redacted)
  • body - Optional request body
  • secret_ctx - Optional context for dynamic secret redaction