Struct hyper::header::HeaderView
[−]
[src]
pub struct HeaderView<'a>(_, _);
Returned with the HeadersItems
iterator.
Methods
impl<'a> HeaderView<'a>
[src]
fn is<H: Header>(&self) -> bool
[src]
Check if a HeaderView is a certain Header.
fn name(&self) -> &'a str
[src]
Get the Header name as a slice.
fn value<H: Header>(&self) -> Option<&'a H>
[src]
Cast the value to a certain Header type.
fn value_string(&self) -> String
[src]
Get just the header value as a String.
This will join multiple values of this header with a ,
.
Warning: This may not be the format that should be used to send a Request or Response.
fn raw(&self) -> &Raw
[src]
Access the raw value of the header.
Trait Implementations
impl<'a> Display for HeaderView<'a>
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more