Struct httparse::Header
[−]
[src]
Represents a parsed header.
Fields
name: &'a str
The name portion of a header.
A header name must be valid ASCII-US, so it's safe to store as a &str
.
value: &'a [u8]
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
impl<'a> Copy for Header<'a>
[src]
impl<'a> Copy for Header<'a>
impl<'a> Clone for Header<'a>
[src]
impl<'a> Clone for Header<'a>
fn clone(&self) -> Header<'a>
[src]
fn clone(&self) -> Header<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'a> PartialEq for Header<'a>
[src]
impl<'a> PartialEq for Header<'a>
fn eq(&self, __arg_0: &Header<'a>) -> bool
[src]
fn eq(&self, __arg_0: &Header<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Header<'a>) -> bool
[src]
fn ne(&self, __arg_0: &Header<'a>) -> bool
This method tests for !=
.
impl<'a> Debug for Header<'a>
[src]
impl<'a> Debug for Header<'a>