Request buffering performance note in docs

The docs mention to avoid request buffering if possible due to performance reasons, per https://caddyserver.com/docs/json/apps/http/servers/routes/handle/reverse_proxy/buffer_requests/

I am planning to use this option to protect Gunicorn from slow clients per https://docs.gunicorn.org/en/stable/deploy.html

If you choose another proxy server you need to make sure that it buffers slow clients when you use default Gunicorn workers. Without this buffering Gunicorn will be easily susceptible to denial-of-service attacks.

Does Caddy implement request buffering in a way such that it is a viable solution for this problem?

Yep, in fact gunicorn is the reason we implemented that functionality: https://github.com/caddyserver/caddy/blob/105acfa08664c97460a6fe3fb49635618be5bcb2/modules/caddyhttp/reverseproxy/reverseproxy.go#L263-L282