[][src]Module warp::filters::body

Body filters

Filters that extract a body for a route.

Structs

BodyDeserializeError

An error used in rejections when deserializing a request body fails.

BodyStream

An impl Stream representing the request body.

FullBody

The full contents of a request body.

StreamBuf

An impl Buf representing a chunk in a request body.

Functions

concat

Returns a Filter that matches any request and extracts a Future of a concatenated body.

content_length_limit

Require a content-length header to have a value no greater than some limit.

form

Returns a Filter that matches any request and extracts a Future of a form encoded body.

json

Returns a Filter that matches any request and extracts a Future of a JSON-decoded body.

stream

Create a Filter that extracts the request body as a futures::Stream.