ConnectionUpgrader
public struct ConnectionUpgrader
The struct that manages the process of upgrading connections from HTTP 1.1 to other protocols.
Note
There a single instance of this struct in a server.-
Register a
ProtocolHandlerFactory
class instances used to create appropriateNIO.ChannelHandler
s for upgraded conectionsDeclaration
Swift
public static func register(handlerFactory: ProtocolHandlerFactory)
Parameters
factory
The
ConnectionUpgradeFactory
class instance being registered.