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