Protocols

The following protocols are available globally.

  • A class to create new IncomingSocketProcessors for upgraded connections. These factory classes are invoked when an “upgrade” HTTP request comes to the server for a particular protocol.

    See more

    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 IncomingSocketProcessor instance per incoming request.

    See more

    Declaration

    Swift

    public protocol IncomingSocketProcessor : AnyObject
  • Implementations of the IncomingSocketProcessorCreator protocol create an implementation of the IncomingSocketProcessor protocol to process the data from a new incoming socket.

    See more

    Declaration

    Swift

    public protocol IncomingSocketProcessorCreator
  • A common protocol for Kitura-net Servers

    See more

    Declaration

    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 more

    Declaration

    Swift

    public protocol ServerDelegate : AnyObject
  • A protocol for implementing a delegate to receive monitoring events from KituraNet.

    See more

    Declaration

    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 more

    Declaration

    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 more

    Declaration

    Swift

    public protocol ServerResponse : AnyObject