[][src]Trait actix_http::http::header::Header

pub trait Header where
    Self: IntoHeaderValue
{ fn name() -> HeaderName;
fn parse<T: HttpMessage>(msg: &T) -> Result<Self, ParseError>; }

A trait for any object that will represent a header field and value.

Required methods

fn name() -> HeaderName

Returns the name of the header field

fn parse<T: HttpMessage>(msg: &T) -> Result<Self, ParseError>

Parse a header

Loading content...

Implementors

Loading content...