Skip to content

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

Instance Property

maxBodySize

The most bytes this request’s body may be buffered into by collect(max:) or by decoding its content.
var maxBodySize: ByteCount

Discussion

Starts at the application’s defaultMaxBodySize. A route raises or lowers it with on(..., maxBodySize:), and middleware can change it before the handler runs — an authenticator that expects a large credentials payload, say.