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>(&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.