Skip to main content

proxy_header_scheme

Function proxy_header_scheme 

Source
pub fn proxy_header_scheme(req: &HttpRequest) -> Option<&'static str>
Expand description

Scheme named by the proxy headers, if any: X-Forwarded-Proto first (first element of a comma list), else the scheme member of the cf-visitor JSON object. An unusable X-Forwarded-Proto value falls through to cf-visitor.