Enumeration
HTTPBodyStreamStrategy
Determines how an incoming HTTP request’s body is collected.
enum HTTPBodyStreamStrategy
Topics
Enumeration Cases
case collect(maxSize: ByteCount?)The HTTP request’s body will be collected into memory before the route handler is called.case streamThe HTTP request’s body will not be collected first before the route handler is called and will arrive in zero or more chunks.
Type Properties
static var collect: HTTPBodyStreamStrategyThe 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.
Relationships
Conforms To
Swift.SendableSwift.SendableMetatype