Struct hyper::header::HeaderView [−][src]
pub struct HeaderView<'a>(_, _);
Returned with the HeadersItems
iterator.
Methods
impl<'a> HeaderView<'a>
[src]
impl<'a> HeaderView<'a>
pub fn is<H: Header>(&self) -> bool
[src]
pub fn is<H: Header>(&self) -> bool
Check if a HeaderView is a certain Header.
pub fn name(&self) -> &'a str
[src]
pub fn name(&self) -> &'a str
Get the Header name as a slice.
pub fn value<H: Header + HeaderFormat>(&self) -> Option<&'a H>
[src]
pub fn value<H: Header + HeaderFormat>(&self) -> Option<&'a H>
Cast the value to a certain Header type.
pub fn value_string(&self) -> String
[src]
pub fn value_string(&self) -> String
Get just the header value as a String.
Trait Implementations
impl<'a> Display for HeaderView<'a>
[src]
impl<'a> Display for HeaderView<'a>
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<'a> Debug for HeaderView<'a>
[src]
impl<'a> Debug for HeaderView<'a>
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<'a> Extend<HeaderView<'a>> for Headers
[src]
impl<'a> Extend<HeaderView<'a>> for Headers
fn extend<I: IntoIterator<Item = HeaderView<'a>>>(&mut self, iter: I)
[src]
fn extend<I: IntoIterator<Item = HeaderView<'a>>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more
impl<'a> FromIterator<HeaderView<'a>> for Headers
[src]
impl<'a> FromIterator<HeaderView<'a>> for Headers
fn from_iter<I: IntoIterator<Item = HeaderView<'a>>>(iter: I) -> Headers
[src]
fn from_iter<I: IntoIterator<Item = HeaderView<'a>>>(iter: I) -> Headers
Creates a value from an iterator. Read more
Auto Trait Implementations
impl<'a> !Send for HeaderView<'a>
impl<'a> !Send for HeaderView<'a>
impl<'a> !Sync for HeaderView<'a>
impl<'a> !Sync for HeaderView<'a>