Module body

Source
Expand description

Body filters

Filters that extract a body for a route.

Structsยง

BodyConsumedMultipleTimes ๐Ÿ”’
BodyDeserializeError
An error used in rejections when deserializing a request body fails.
BodyReadError ๐Ÿ”’
BodyStream ๐Ÿ”’
Form ๐Ÿ”’
Json ๐Ÿ”’

Traitsยง

Decode ๐Ÿ”’

Functionsยง

aggregate
Returns a Filter that matches any request and extracts a Future of an aggregated body.
body ๐Ÿ”’
bytes
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.
is_content_type ๐Ÿ”’
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.

Type Aliasesยง

BoxError ๐Ÿ”’