Skip to main content

extract_bearer_token

Function extract_bearer_token 

Source
pub fn extract_bearer_token(request: &Request) -> Option<String>
Available on crate feature auth only.
Expand description

Extract the raw token string from Authorization: Bearer <token>. Returns None if the header is absent or does not start with Bearer .