Skip to main content

decode_response

Function decode_response 

Source
pub fn decode_response(
    input: &[u8],
    limits: Limits,
) -> Result<(ResponseHead<'_>, usize), DecodeError>
Expand description

Decodes a response head. Returns it and the octets it used.

ยงErrors

As decode_request, with "status line", "status" and "reason phrase" for the first line.