Function aws_smithy_http::header::one_or_none

source ยท
pub fn one_or_none<'a, T: FromStr>(
    values: impl Iterator<Item = &'a str>,
) -> Result<Option<T>, ParseError>
where T::Err: Error + Send + Sync + 'static,
Expand description

Read exactly one or none from a headers iterator

This function does not perform comma splitting like read_many