pub trait HeaderMapExt {
// Required methods
fn typed_get<H: Header>(&self) -> Option<H>;
fn typed_insert<H: Header>(&mut self, header: H);
}Expand description
An extension trait adding convenience methods to use typed headers.
Required Methods§
Sourcefn typed_insert<H: Header>(&mut self, header: H)
fn typed_insert<H: Header>(&mut self, header: H)
Inserts a typed header into the header map.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".