fn parse_vec<'a, F, T>(input: &'a str, parse_single: F) -> Result<Vec<T>>
where
    F: Fn(&'a str) -> IResult<&'a str, T>,
{
    terminated(
        separated_list0(separated_pair(ows, char1(','), ows), parse_single),
        eof,
    )(input)
    .map(|(_, items)| items)
    .map_err(format_nom_err)
}
// Parses a http header which might have multiple values separated by comma.
Parses a http header which might have multiple values separated by comma.
Parses a http header which might have multiple values separated by comma .
fn parse_vec<'a, F, T>(input: &'a str, parse_single: F) -> Result<Vec<T>>
where
    F: Fn(&'a str) -> IResult<&'a str, T>,
{
    terminated(
        separated_list0(separated_pair(ows, char1(','), ows), parse_single),
        eof,
    )(input)
    .map(|(_, items)| items)
    .map_err(format_nom_err)
}
fn parse_vec < ' a , F , T > ( input : & ' a str , parse_single : F ) -> Result < Vec < T > > where F : Fn ( & ' a str ) -> IResult < & ' a str , T > , { terminated ( separated_list0 ( separated_pair ( ows , char1 ( ',' ) , ows ) , parse_single ) , eof , ) ( input ) . map ( | ( _ , items ) | items ) . map_err ( format_nom_err ) }
Parses a http header which might have multiple values separated by comma.
Parses a http header which might have multiple values separated by comma .
input
&'a str
parse_single
F
input
&'a str
parse_single
F