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.

Trait Implementations

impl<'a> Display for HeaderView<'a>
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<'a> Debug for HeaderView<'a>
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.