Function async_scgi::headers::parse_headers[][src]

pub fn parse_headers<'h>(
    raw_headers: &'h [u8],
    headers_fn: impl FnMut(&'h str, &'h str) -> Result<(), ScgiHeaderParseError>
) -> Result<(), ScgiHeaderParseError>
Expand description

Parse the headers, invoking the header closure for every header parsed.