mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-27 06:03:48 +03:00
reverseproxy: Add buffer_requests
option to reverse_proxy
directive (#3710)
This commit is contained in:
parent
24f34780b6
commit
4cd7ae35b3
2 changed files with 8 additions and 0 deletions
|
@ -10,6 +10,7 @@ https://example.com {
|
|||
versions h2c 2
|
||||
compression off
|
||||
}
|
||||
buffer_requests
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -38,6 +39,7 @@ https://example.com {
|
|||
{
|
||||
"handle": [
|
||||
{
|
||||
"buffer_requests": true,
|
||||
"handler": "reverse_proxy",
|
||||
"headers": {
|
||||
"request": {
|
||||
|
|
|
@ -467,6 +467,12 @@ func (h *Handler) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
|
|||
h.FlushInterval = caddy.Duration(dur)
|
||||
}
|
||||
|
||||
case "buffer_requests":
|
||||
if d.NextArg() {
|
||||
return d.ArgErr()
|
||||
}
|
||||
h.BufferRequests = true
|
||||
|
||||
case "header_up":
|
||||
if h.Headers == nil {
|
||||
h.Headers = new(headers.Handler)
|
||||
|
|
Loading…
Reference in a new issue