fn next_line<'a>(bytes: &'a [u8]) -> Result<(&'a [u8], &'a [u8])> {
    let (line, rest) = match memchr(b'\r', bytes) {
        Some(idx) => bytes.split_at(idx),
        None => return Err(Error::Partial),
    };

    let rest = check_crlf(rest)?;

    Ok((line, rest))
}
/// Retrieve the next chunk in the request, up to and not including the nearest CRLF.
Retrieve the next chunk in the request, up to and not including the nearest CRLF.
Retrieve the next chunk in the request up to and not including the nearest CRLF .
fn next_line<'a>(bytes: &'a [u8]) -> Result<(&'a [u8], &'a [u8])> {
    let (line, rest) = match memchr(b'\r', bytes) {
        Some(idx) => bytes.split_at(idx),
        None => return Err(Error::Partial),
    };
    let rest = check_crlf(rest)?;
    Ok((line, rest))
}
fn next_line < ' a > ( bytes : & ' a [ u8 ] ) -> Result < ( & ' a [ u8 ] , & ' a [ u8 ] ) > { let ( line , rest ) = match memchr ( b'\r' , bytes ) { Some ( idx ) => bytes . split_at ( idx ) , None => return Err ( Error :: Partial ) , } ; let rest = check_crlf ( rest ) ? ; Ok ( ( line , rest ) ) }
Retrieve the next chunk in the request, up to and not including the nearest CRLF.
Retrieve the next chunk in the request up to and not including the nearest CRLF .
bytes
&'a [u8]
bytes
&'a [u8]