Struct iron::headers::HeaderView [] [src]

pub struct HeaderView<'a>(_, _);

Returned with the HeadersItems iterator.

Methods

impl<'a> HeaderView<'a>

fn is<H>(&self) -> bool where H: Header

Check if a HeaderView is a certain Header.

fn name(&self) -> &'a str

Get the Header name as a slice.

fn value<H>(&self) -> Option<&'a H> where H: Header + HeaderFormat

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>

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

impl<'a> Debug for HeaderView<'a>

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