pub trait HeaderExt: Header + Sealed {
// Required method
fn encode_to_value(&self) -> HeaderValue;
}
Expand description
An external trait adding helper methods to types which implement Header
trait.
Required Methods§
Sourcefn encode_to_value(&self) -> HeaderValue
fn encode_to_value(&self) -> HeaderValue
Encode this Header
to HeaderValue
.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.