[−][src]Trait headers::HeaderMapExt
An extension trait adding "typed" methods to http::HeaderMap
.
Required methods
fn typed_insert<H>(&mut self, header: H) where
H: Header,
H: Header,
Inserts the typed Header
into this HeaderMap
.
fn typed_get<H>(&self) -> Option<H> where
H: Header,
H: Header,
Tries to find the header by name, and then decode it into H
.
fn typed_try_get<H>(&self) -> Result<Option<H>, Error> where
H: Header,
H: Header,
Tries to find the header by name, and then decode it into H
.
Implementations on Foreign Types
impl HeaderMapExt for HeaderMap
[src]
fn typed_insert<H>(&mut self, header: H) where
H: Header,
[src]
H: Header,
fn typed_get<H>(&self) -> Option<H> where
H: Header,
[src]
H: Header,
fn typed_try_get<H>(&self) -> Result<Option<H>, Error> where
H: Header,
[src]
H: Header,