Skip to main content

read_many_from_str_bytes

Function read_many_from_str_bytes 

Source
pub fn read_many_from_str_bytes<'a, T: FromStr>(
    values: impl Iterator<Item = &'a [u8]>,
) -> Result<Vec<T>, ParseError>
where T::Err: Error + Send + Sync + 'static,
Expand description

Convert raw header values into a Vec<T> where T: FromStr

Like read_many_from_str, but accepts raw bytes. A value that is not valid UTF-8 produces a ParseError.