zng::task::http

Trait TryHeaderValue

source
pub trait TryHeaderValue {
    // Required method
    fn try_header_value(self) -> Result<HeaderValue, Error>;
}
Expand description

Marker trait for types that try-to-convert to header::HeaderValue.

All types T that match header::HeaderValue: TryFrom<T>, <header::HeaderValue as TryFrom<T>>::Error: Into<isahc::http::Error> implement this trait.

Required Methods§

source

fn try_header_value(self) -> Result<HeaderValue, Error>

Tries to convert self into Body.

Implementors§