Struct parsip::Header [] [src]

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

Represents a parsed header.


The name portion of a header.

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

The value portion of a header.

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

Trait Implementations

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Formats the value using the given formatter.