Trait actix_http::header::Header
source · [−]pub trait Header: TryIntoHeaderValue {
fn name() -> HeaderName;
fn parse<M: HttpMessage>(msg: &M) -> Result<Self, ParseError>;
}
Expand description
An interface for types that already represent a valid header.
Required Methods
fn name() -> HeaderName
fn name() -> HeaderName
Returns the name of the header field
fn parse<M: HttpMessage>(msg: &M) -> Result<Self, ParseError>
fn parse<M: HttpMessage>(msg: &M) -> Result<Self, ParseError>
Parse a header