Struct httpbis::solicit::header::Header [−][src]
Fields
name: Bytes
value: Bytes
Methods
impl Header
[src]
impl Header
pub fn new<N: Into<HeaderPart>, V: Into<HeaderPart>>(
name: N,
value: V
) -> Header
[src]
pub 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
.
pub fn name(&self) -> &[u8]
[src]
pub fn name(&self) -> &[u8]
Return a borrowed representation of the Header
name.
pub fn value(&self) -> &[u8]
[src]
pub fn value(&self) -> &[u8]
Return a borrowed representation of the Header
value.
pub fn format(&self) -> String
[src]
pub fn format(&self) -> String
name: value
pub fn is_preudo_header(&self) -> bool
[src]
pub fn is_preudo_header(&self) -> bool
pub fn pseudo_header_name(&self) -> HeaderResult<Option<PseudoHeaderName>>
[src]
pub fn pseudo_header_name(&self) -> HeaderResult<Option<PseudoHeaderName>>
pub fn validate(&self, req_or_resp: RequestOrResponse) -> HeaderResult<()>
[src]
pub fn validate(&self, req_or_resp: RequestOrResponse) -> HeaderResult<()>
Trait Implementations
impl Debug for Header
[src]
impl Debug for Header
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Header
[src]
impl PartialEq for Header
fn eq(&self, other: &Header) -> bool
[src]
fn eq(&self, other: &Header) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Header) -> bool
[src]
fn ne(&self, other: &Header) -> bool
This method tests for !=
.
impl Eq for Header
[src]
impl Eq for Header
impl Clone for Header
[src]
impl Clone for Header
fn clone(&self) -> Header
[src]
fn clone(&self) -> Header
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<N: Into<HeaderPart>, V: Into<HeaderPart>> From<(N, V)> for Header
[src]
impl<N: Into<HeaderPart>, V: Into<HeaderPart>> From<(N, V)> for Header
impl FromIterator<Header> for Headers
[src]
impl FromIterator<Header> for Headers