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

An interface for types that already represent a valid header.

Required methods

Returns the name of the header field.

Parse the header from a HTTP message.

Implementors