Skip to main content

extract_header_x_forwarded_proto

Function extract_header_x_forwarded_proto 

Source
pub fn extract_header_x_forwarded_proto(
    headers: &HeaderMap,
) -> Result<Option<Vec<String>>, Error>
Expand description

Extract all X-Forwarded-Proto field lines as untrusted protocol tokens.

A missing field returns None. Repeated field lines are accepted in wire order. Each comma-separated item must be a non-empty URI-scheme token; non-text lines and invalid items return an error. Valid tokens are normalized to lowercase. This performs syntax validation only: it does not authenticate the sender, select an effective request scheme, or make the values trusted.