Skip to main content

HeaderValue

Trait HeaderValue 

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

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

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

Available on crate features http10 or http only.
Source§

impl HeaderValue for HeaderValue

Available on crate feature http10 only.
Source§

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

Available on crate features http10 or http only.

Implementors§