pub trait HeaderValue {
// Required method
fn to_str(&self) -> Result<&str, ToStrError>;
}Available on crate features
http or http10 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>
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.