Function aws_smithy_http::header::one_or_none
source · pub fn one_or_none<T: FromStr>(
values: ValueIter<'_, HeaderValue>
) -> 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