request_body: Clarify error behavior

This commit is contained in:
Matthew Holt 2022-03-11 12:40:35 -07:00
parent 8670d0ab74
commit 8adcfcbffc
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5

View file

@ -15,7 +15,7 @@ request_body [<matcher>] {
} }
``` ```
- **max_size** is the maximum size in bytes allowed for the request body. It accepts all formats supported by [go-humanize](https://github.com/dustin/go-humanize/blob/master/bytes.go). - **max_size** is the maximum size in bytes allowed for the request body. It accepts all size values supported by [go-humanize](https://pkg.go.dev/github.com/dustin/go-humanize#pkg-constants). Reads of more bytes will return an error with HTTP status 413.
## Examples ## Examples