Struct httpbis::solicit::header::Header
[−]
[src]
pub struct Header { pub name: Bytes, pub value: Bytes, }
Fields
name: Bytes
value: Bytes
Methods
impl Header
[src]
fn new<N: Into<HeaderPart>, V: Into<HeaderPart>>(name: N, value: V) -> Header
Creates a new Header
with the given name and value.
The name and value need to be convertible into a HeaderPart
.
fn name(&self) -> &[u8]
Return a borrowed representation of the Header
name.
fn value(&self) -> &[u8]
Return a borrowed representation of the Header
value.
Trait Implementations
impl Clone for Header
[src]
fn clone(&self) -> Header
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Header
[src]
fn eq(&self, __arg_0: &Header) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Header) -> bool
This method tests for !=
.