Skip to content

Case

HTTPBodyStreamStrategy.collect(maxSize:)

The HTTP request’s body will be collected into memory before the route handler is called.
case collect(maxSize: ByteCount?)

Discussion

maxSize Limits the maximum amount of memory in bytes that will be used to collect a streaming body. Streaming requests exceeding that size will result in an error. Passing nil results in the application’s default max body size being used. This parameter does not affect non-streaming requests.