Skip to main content

sanitize_forward_headers

Function sanitize_forward_headers 

Source
pub fn sanitize_forward_headers(
    headers: &[Header],
) -> Result<Vec<Header>, Http1Error>
Expand description

Removes proxy credentials, all Proxy-* and X-HNS-* fields, standard hop-by-hop fields, and fields nominated by Connection/Proxy-Connection.