Trait fire_http::header::IntoHeaderValue
source · [−]pub trait IntoHeaderValue {
fn try_into_header_value(self) -> Option<HeaderValue>;
fn into_enc_header_value(self) -> HeaderValue;
}Expand description
Converts a value into a HeaderValue.
Some types can not be converted for sure, like string’s and bytes. Numbers (except floats) cannot fail.
Required Methods
fn try_into_header_value(self) -> Option<HeaderValue>
fn try_into_header_value(self) -> Option<HeaderValue>
Tries to convert to a HeaderValue.