Protocols
The following protocols are available globally.
-
A class to create new
See moreIncomingSocketProcessor
s for upgraded connections. These factory classes are invoked when an “upgrade” HTTP request comes to the server for a particular protocol.Declaration
Swift
public protocol ConnectionUpgradeFactory
-
This protocol defines the API of the classes used to process the data that comes in from a client’s request. There should be one
See moreIncomingSocketProcessor
instance per incoming request.Declaration
Swift
public protocol IncomingSocketProcessor : AnyObject
-
Implementations of the
See moreIncomingSocketProcessorCreator
protocol create an implementation of theIncomingSocketProcessor
protocol to process the data from a new incoming socket.Declaration
Swift
public protocol IncomingSocketProcessorCreator
-
A common protocol for Kitura-net Servers
See moreDeclaration
Swift
public protocol Server
-
The protocol defining the delegate for the HTTPServer and the FastCGIServer classes. The delegate’s handle function is invoked when new requests arrive at the server for processing.
See moreDeclaration
Swift
public protocol ServerDelegate : AnyObject
-
A protocol for implementing a delegate to receive monitoring events from KituraNet.
See moreDeclaration
Swift
public protocol ServerMonitor
-
The ServerRequest protocol allows requests to be abstracted across different networking protocols in an agnostic way to the Kitura project Router.
See moreDeclaration
Swift
public protocol ServerRequest : AnyObject
-
The ServerResponse protocol allows responses to be abstracted across different networking protocols in an agnostic way to the Kitura project Router.
See moreDeclaration
Swift
public protocol ServerResponse : AnyObject