HeaderType

Trait HeaderType 

Source
pub trait HeaderType {
    // Required method
    fn from_request(req: &HttpRequest) -> Result<Self, ExtractError>
       where Self: Sized;
}
Expand description

A type that can be extracted from a request header

Required Methods§

Source

fn from_request(req: &HttpRequest) -> Result<Self, ExtractError>
where Self: Sized,

Implementors§