Skip to main content

remove_sensitive_request_headers

Function remove_sensitive_request_headers 

pub fn remove_sensitive_request_headers(headers: &mut HeaderMap)
Available on crate feature http only.
Expand description

Remove sensitive headers from an outbound request.

This function removes headers that may contain credentials, authentication material, or security tokens.

This is typically used when:

  • Forwarding requests across trust boundaries
  • Logging or persisting request metadata
  • Sending requests to untrusted upstreams