Skip to main content

parse_list

Function parse_list 

pub fn parse_list<'a>(
    input: &'a [u8],
    visit: impl FnMut(ListEvent<'a>),
) -> Result<(), ParseError>
Available on crate features http and std only.
Expand description

Validate a complete List (RFC 9651 §4.2.1), projecting each member and its parameters into visit in wire order.

Callbacks can occur before a later syntax error: discard their results on error. Combine multiple HTTP field lines with commas before calling this function.