Protocols

The following protocols are available globally.

  • A protocol that should be implemented by connection upgraders of other protocols like WebSocket. This protocol provides a common interface to the HTTPServer to upgrade an incoming HTTP connection to the desired protocol.

    See more

    Declaration

    Swift

    public protocol ProtocolHandlerFactory
  • 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