pub trait HeaderValue {
// Required method
fn to_str(&self) -> Result<&str, ToStrError>;
}Available on crate features
http10 or http only.Expand description
A trait for the parts needed from http crate 0.2 or 1.0’s HeaderValue type.
Required Methods§
fn to_str(&self) -> Result<&str, ToStrError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl HeaderValue for HeaderValue
Available on crate feature http only.
impl HeaderValue for HeaderValue
Available on crate feature
http only.Source§impl HeaderValue for HeaderValue
Available on crate feature http10 only.
impl HeaderValue for HeaderValue
Available on crate feature
http10 only.