mirror of
https://github.com/caddyserver/website.git
synced 2025-05-08 04:31:05 -04:00
30 lines
451 B
Markdown
30 lines
451 B
Markdown
![]() |
---
|
||
|
title: request_body (Caddyfile directive)
|
||
|
---
|
||
|
|
||
|
# request_body
|
||
|
|
||
|
Manipulates request body.
|
||
|
|
||
|
|
||
|
## Syntax
|
||
|
|
||
|
```caddy-d
|
||
|
request_body {
|
||
|
max_size <value>
|
||
|
}
|
||
|
```
|
||
|
|
||
|
- **<value>** 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
|
||
|
}
|
||
|
```
|