Trait actix_web_httpauth::headers::authorization::Scheme

source ·
pub trait Scheme: TryIntoHeaderValue + Debug + Display + Clone + Send + Sync {
    // Required method
    fn parse(header: &HeaderValue) -> Result<Self, ParseError>;
}
Expand description

Authentication scheme for Authorization header.

Required Methods§

source

fn parse(header: &HeaderValue) -> Result<Self, ParseError>

Try to parse an authentication scheme from the Authorization header.

Object Safety§

This trait is not object safe.

Implementors§