Struct httpbis::solicit::header::Header
[−]
[src]
pub struct Header { pub name: Bytes, pub value: Bytes, }
Fields
name: Bytes
value: Bytes
Methods
impl Header
[src]
pub fn new<N: Into<HeaderPart>, V: Into<HeaderPart>>(
name: N,
value: V
) -> Header
[src]
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
.
pub fn name(&self) -> &[u8]
[src]
Return a borrowed representation of the Header
name.
pub fn value(&self) -> &[u8]
[src]
Return a borrowed representation of the Header
value.
pub fn format(&self) -> String
[src]
name: value
Trait Implementations
impl Debug for Header
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Header
[src]
fn eq(&self, __arg_0: &Header) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Header) -> bool
[src]
This method tests for !=
.
impl Eq for Header
[src]
impl Clone for Header
[src]
fn clone(&self) -> Header
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more