actix_web::http::header

Function from_one_raw_str

source
pub fn from_one_raw_str<T>(val: Option<&HeaderValue>) -> Result<T, ParseError>
where T: FromStr,
Expand description

Reads a single string when parsing a header.