Skip to main content

read_many_primitive_bytes

Function read_many_primitive_bytes 

Source
pub fn read_many_primitive_bytes<'a, T: Parse>(
    values: impl Iterator<Item = &'a [u8]>,
) -> Result<Vec<T>, ParseError>
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.