logo

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

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

An interface for types that already represent a valid header.

Required methods

Returns the name of the header field

Parse a header

Implementors