Documentation
a project

request_body

Manipulates or sets restrictions on the bodies of incoming requests.

Syntax

request_body [<matcher>] {
  max_size <value>
}
  • max_size is the maximum size in bytes allowed for the request body. It accepts all formats supported by go-humanize.

Examples

Limit request body sizes to 10 megabytes:

request_body {
  max_size 10MB
}