Trait HeaderExt
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§
fn encode_to_value(&self) -> HeaderValue
fn encode_to_value(&self) -> HeaderValue
Encode this Header
to HeaderValue
.
Object Safety§
This trait is not object safe.