Trait actix_http::header::Header [−][src]
pub trait Header: IntoHeaderValue {
fn name() -> HeaderName;
fn parse<T: HttpMessage>(msg: &T) -> Result<Self, ParseError>;
}
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: HttpMessage>(msg: &T) -> Result<Self, ParseError>
fn parse<T: HttpMessage>(msg: &T) -> Result<Self, ParseError>
Parse a header