mirror of
https://github.com/caddyserver/website.git
synced 2025-05-07 04:07:13 -04:00
Add documentation about request_body directive in Caddyfile
This commit is contained in:
parent
6b4998a5dc
commit
ff25b2555f
2 changed files with 31 additions and 0 deletions
|
@ -23,6 +23,7 @@ Directive | Description
|
||||||
**[php_fastcgi](/docs/caddyfile/directives/php_fastcgi)** | Serve PHP sites over FastCGI
|
**[php_fastcgi](/docs/caddyfile/directives/php_fastcgi)** | Serve PHP sites over FastCGI
|
||||||
**[push](/docs/caddyfile/directives/push)** | Push content to the client using HTTP/2 server push
|
**[push](/docs/caddyfile/directives/push)** | Push content to the client using HTTP/2 server push
|
||||||
**[redir](/docs/caddyfile/directives/redir)** | Issues an HTTP redirect to the client
|
**[redir](/docs/caddyfile/directives/redir)** | Issues an HTTP redirect to the client
|
||||||
|
**[request_body](/docs/caddyfile/directives/request_body)** | Manipulates request body
|
||||||
**[request_header](/docs/caddyfile/directives/request_header)** | Manipulates request headers
|
**[request_header](/docs/caddyfile/directives/request_header)** | Manipulates request headers
|
||||||
**[respond](/docs/caddyfile/directives/respond)** | Writes a hard-coded response to the client
|
**[respond](/docs/caddyfile/directives/respond)** | Writes a hard-coded response to the client
|
||||||
**[reverse_proxy](/docs/caddyfile/directives/reverse_proxy)** | A powerful and extensible reverse proxy
|
**[reverse_proxy](/docs/caddyfile/directives/reverse_proxy)** | A powerful and extensible reverse proxy
|
||||||
|
@ -75,6 +76,7 @@ Many directives manipulate the HTTP handler chain. The order in which those dire
|
||||||
root
|
root
|
||||||
|
|
||||||
header
|
header
|
||||||
|
request_body
|
||||||
|
|
||||||
redir
|
redir
|
||||||
rewrite
|
rewrite
|
||||||
|
|
29
src/docs/markdown/caddyfile/directives/request_body.md
Normal file
29
src/docs/markdown/caddyfile/directives/request_body.md
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
---
|
||||||
|
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
|
||||||
|
}
|
||||||
|
```
|
Loading…
Add table
Add a link
Reference in a new issue