Enumeration Casevapor 4.114.1Vapor

collect(maxSize:)

The HTTP request’s body will be collected into memory before the route handler is called.

RoutesBuilder+Method.swift:26
case collect(maxSize: ByteCount?)

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.

Other cases

  • case stream

    The HTTP request’s body will not be collected first before the route handler is called and will arrive in zero or more chunks.