HTTPRequestHandling
public protocol HTTPRequestHandling: class
Class protocol containing a handle() function that implements HTTPRequestHandler to respond to incoming HTTP requests.
See
HTTPRequestHandler for more information
-
handle: function that implements
HTTPRequestHandlerand is called when a new HTTP request is received by the HTTP server.See
HTTPRequestHandlerfor more informationDeclaration
Swift
func handle(request: HTTPRequest, response: HTTPResponseWriter) -> HTTPBodyProcessingParameters
requestthe incoming HTTP request.
responsea writer providing functions to create an HTTP response to the request.
View on GitHub
HTTPRequestHandling Protocol Reference