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
Check if a HeaderView is a certain Header.
fn name(&self) -> &'a str
Get the Header name as a slice.
fn value<H: Header + HeaderFormat>(&self) -> Option<&'a H>
Cast the value to a certain Header type.
fn value_string(&self) -> String
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.