Trait headers_ext::HeaderMapExt [−][src]
pub trait HeaderMapExt: Sealed { fn typed_insert<H>(&mut self, header: H)
where
H: Header; fn typed_get<H>(&self) -> Option<H>
where
H: Header; }
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
.
Implementors
impl HeaderMapExt for HeaderMap<HeaderValue>