Skip to main content

Module body_limit

Module body_limit 

Source
Expand description

Generic request body size limit.

Structs§

RequestBodyLimitLayer
Layer that applies the RequestBodyLimit middleware that intercepts requests with body lengths greater than the configured limit and converts them into 413 Payload Too Large responses.

Functions§

body_limit_layer
Build a layer that rejects request bodies larger than bytes.