HeaderValue

Trait HeaderValue 

Source
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§

Implementations on Foreign Types§

Source§

impl HeaderValue for HeaderValue

Available on crate feature http only.
Source§

fn to_str(&self) -> Result<&str, ToStrError>

Available on crate features http or http10 only.
Source§

impl HeaderValue for HeaderValue

Available on crate feature http10 only.
Source§

fn to_str(&self) -> Result<&str, ToStrError>

Available on crate features http or http10 only.

Implementors§