Skip to main content

extract_request_authorization

Function extract_request_authorization 

Source
pub fn extract_request_authorization<B>(
    request: &Request<B>,
) -> Result<Option<&str>, Error>
Expand description

Extract the raw Authorization field from a complete request.

This reads request.headers() and delegates to extract_header_authorization, preserving its missing, empty, duplicate, and non-text behavior. The returned value is sensitive and must not be logged or echoed; no validation, decoding, or authentication is performed.