Module warp::filters::body

source ·
Expand description

Body filters

Filters that extract a body for a route.

Structs

An error used in rejections when deserializing a request body fails.
An impl Stream representing the request body.
The full contents of a request body.
An impl Buf representing a chunk in a request body.

Functions

Returns a Filter that matches any request and extracts a Future of a concatenated body.
Require a content-length header to have a value no greater than some limit.
Returns a Filter that matches any request and extracts a Future of a form encoded body.
Returns a Filter that matches any request and extracts a Future of a JSON-decoded body.
Create a Filter that extracts the request body as a futures::Stream.