Struct httparse::Header [] [src]

pub struct Header<'a> {
    pub name: &'a str,
    pub value: &'a [u8],
}

Represents a parsed header.

Fields

name

The name portion of a header.

A header name must be valid ASCII-US, so it's safe to store as a &str.

value

The value portion of a header.

While headers should be ASCII-US, the specification allows for values that may not be, and so the value is stored as bytes.

Trait Implementations

Derived Implementations

impl<'a> Debug for Header<'a>

fn fmt(&self, arg_0: &mut Formatter) -> Result

impl<'a> PartialEq for Header<'a>

fn eq(&self, arg_0: &Header<'a>) -> bool

fn ne(&self, arg_0: &Header<'a>) -> bool

impl<'a> Clone for Header<'a>

fn clone(&self) -> Header<'a>

1.0.0fn clone_from(&mut self, source: &Self)

impl<'a> Copy for Header<'a>