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

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

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>(msg: &T) -> Result<Self, ParseError> where
    T: HttpMessage

Parse a header

Loading content...

Implementors

impl Header for IfMatch[src]

impl Header for IfNoneMatch[src]

impl Header for IfRange[src]

impl Header for Accept[src]

impl Header for AcceptCharset[src]

impl Header for AcceptLanguage[src]

impl Header for Allow[src]

impl Header for CacheControl[src]

impl Header for ContentDisposition[src]

impl Header for ContentLanguage[src]

impl Header for ContentRange[src]

impl Header for ContentType[src]

impl Header for Date[src]

impl Header for ETag[src]

impl Header for Expires[src]

impl Header for IfModifiedSince[src]

impl Header for IfUnmodifiedSince[src]

impl Header for LastModified[src]

Loading content...