Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

Case

BodySizeLimit.unlimited

No ceiling: buffer the body however large it turns out to be.
case unlimited

Discussion

Warning

This is an unbounded allocation driven by whoever sent the request. It is safe only where the size is already known to be bounded — a test, or a body this process produced itself. Anywhere a client controls the length, prefer BodySizeLimit.specified(_:).