Skip to content

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

Instance Property

maxBodySize

The most bytes content will buffer when decoding a streaming body.
let maxBodySize: Int

Discussion

A response arriving from somewhere else is not bounded by anything this process controls, so collecting one has to have a ceiling. Streaming it with withStreamingBytes(_:) is not limited by this - only holding the whole thing in memory is.