[−][src]Trait typed_headers::HeaderMapExt
An extension trait adding typed getters and setters to HeaderMap
.
Required methods
fn typed_get<H>(&self) -> Result<Option<H>, Error> where
H: Header,
H: Header,
Retrieves the specified header from the map, if present.
fn typed_insert<H>(&mut self, header: &H) where
H: Header,
H: Header,
Inserts the provided header into the map.
This overwrites any existing entries for that header.
fn typed_remove<H>(&mut self) -> Result<Option<H>, Error> where
H: Header,
H: Header,
Removes and returns the specified header from the map, if present.
The header will be removed even if it doesn't successfully parse.
Implementations on Foreign Types
impl HeaderMapExt for HeaderMap
[src]
fn typed_get<H>(&self) -> Result<Option<H>, Error> where
H: Header,
[src]
H: Header,
fn typed_insert<H>(&mut self, header: &H) where
H: Header,
[src]
H: Header,
fn typed_remove<H>(&mut self) -> Result<Option<H>, Error> where
H: Header,
[src]
H: Header,