Skip to main content

authorize_header

Function authorize_header 

Source
pub fn authorize_header(
    header: Option<&str>,
    expected: &str,
) -> Result<(), ServeError>
Available on crate feature serve only.
Expand description

Validate a raw Authorization header value against the expected token.