Skip to main content

extract_request_x_forwarded_for

Function extract_request_x_forwarded_for 

Source
pub fn extract_request_x_forwarded_for<B>(
    request: &Request<B>,
) -> Result<Option<Vec<IpAddr>>, Error>
Expand description

Extract the untrusted X-Forwarded-For chain from a complete request.

This reads request.headers() and delegates to extract_header_x_forwarded_for, preserving its missing, repeated-line, and malformed-value behavior. The returned assertions remain untrusted.