Documentation

Hale.WaiExtra.Network.Wai.Middleware.RequestSizeLimit

Reject requests whose body exceeds the given byte limit. For known-length bodies, checks Content-Length before reading. For chunked bodies, wraps the body reader with a counting reader. $$\text{requestSizeLimit} : \mathbb{N} \to \text{Middleware}$$ Returns 413 Payload Too Large if the limit is exceeded.

Equations
  • One or more equations did not get rendered due to their size.
Instances For