Skip to main content

request_framing

Function request_framing 

Source
pub fn request_framing(fields: &[Field<'_>]) -> Result<Framing, DecodeError>
Expand description

The framing of a request body (RFC 9112 §6.3 rules 3 to 7).

§Errors

Malformed: "both Transfer-Encoding and Content-Length" (a smuggling vector a server must not guess at, RFC 9112 §6.1); "transfer coding" for any coding list other than exactly chunked; "Content-Length".