Add documentation about request_body directive in Caddyfile

This commit is contained in:
pic 2020-11-18 11:08:44 +01:00
parent 6b4998a5dc
commit ff25b2555f
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,29 @@
---
title: request_body (Caddyfile directive)
---
# request_body
Manipulates request body.
## Syntax
```caddy-d
request_body {
max_size <value>
}
```
- **&lt;value&gt;** 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).
## Examples
Limit request body s to 10 mega bytes:
```caddy-d
request_body {
max_size 10MB
}
```