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
ProtocolHandlerFactoryclass instances used to create appropriateNIO.ChannelHandlers for upgraded conectionsDeclaration
Swift
public static func register(handlerFactory: ProtocolHandlerFactory)Parameters
factoryThe
ConnectionUpgradeFactoryclass instance being registered.
View on GitHub
ConnectionUpgrader Structure Reference