Trait ajars_actix_web::actix_web::http::header::Header [−]
pub trait Header: IntoHeaderValue { fn name() -> HeaderName; fn parse<T>(msg: &T) -> Result<Self, ParseError>
where
T: HttpMessage; }
Expand description
A trait for any object that already represents a valid header field and value.
Required methods
fn name() -> HeaderName
fn name() -> HeaderName
Returns the name of the header field
fn parse<T>(msg: &T) -> Result<Self, ParseError> where
T: HttpMessage,
fn parse<T>(msg: &T) -> Result<Self, ParseError> where
T: HttpMessage,
Parse a header
Implementors
impl Header for ContentEncoding