Trait awc::http::header::Header

pub trait Header: TryIntoHeaderValue {
    // Required methods
    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§

fn name() -> HeaderName

Returns the name of the header field.

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

Parse the header from a HTTP message.

Object Safety§

This trait is not object safe.

Implementors§