pub trait IntoHeaderValue {
fn try_into_header_value(self) -> Option<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
.