Skip to main content

token_from_headers

Function token_from_headers 

Source
pub fn token_from_headers(headers: &HeaderMap) -> Option<String>
Expand description

Extract the bearer token from Authorization: Bearer <t> or the X-API-Key header.