HTTPBodyStreamStrategy

    Determines how an incoming HTTP request’s body is collected.

    RoutesBuilder+Method.swift:5
    enum HTTPBodyStreamStrategy

    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.

    • case collect(maxSize: ByteCount?)

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

    Citizens in Vapor

    Conformances

    Type members

    • static var collect: HTTPBodyStreamStrategy

      The HTTP request’s body will be collected into memory up to a maximum size before the route handler is called. The application’s configured default max body size will be used unless otherwise specified.