HTTP Request
-
A structure representing the headers from a HTTP request, without the body of the request.
See moreDeclaration
Swift
public struct HTTPRequest
-
Method that takes a chunk of request body and is expected to write to the
HTTPResponseWriter
Declaration
Swift
public typealias HTTPBodyHandler = (HTTPBodyChunk, inout Bool) -> Void
Parameters
HTTPBodyChunk
HTTPBodyChunk
representing some or all of the incoming request bodyBool
A boolean flag that can be set to true in order to prevent further processing
-
Indicates whether the body is going to be processed or ignored
See moreDeclaration
Swift
public enum HTTPBodyProcessing
-
Part or all of the incoming request body
See moreDeclaration
Swift
public enum HTTPBodyChunk
-
HTTP method structure
See moreDeclaration
Swift
public struct HTTPMethod