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

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

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

Required methods

Returns the name of the header field

Parse a header

Implementors