Expand description
Body filters
Filters that extract a body for a route.
Structs§
- Body
Deserialize Error - An error used in rejections when deserializing a request body fails.
Functions§
- aggregate
- Returns a
Filter
that matches any request and extracts aFuture
of an aggregated body. - bytes
- Returns a
Filter
that matches any request and extracts aFuture
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 aFuture
of a form encoded body. - json
- Returns a
Filter
that matches any request and extracts aFuture
of a JSON-decoded body. - stream
- Create a
Filter
that extracts the request body as afutures::Stream
.