Skip to main content

read_many_primitive_bytes

Function read_many_primitive_bytes 

pub fn read_many_primitive_bytes<'a, T>(
    values: impl Iterator<Item = &'a [u8]>,
) -> Result<Vec<T>, ParseError>
where T: Parse,
Expand description

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

Like read_many_primitive, but accepts raw bytes. A value that is not valid UTF-8 produces a ParseError: Smithy primitives are ASCII, so such a value is always malformed.