Vapor Documentation

Protocol Upgrader

public protocol Upgrader  

Conformance for any struct that performs an HTTP Upgrade

%225 Upgrader Upgrader WebSocketUpgrader WebSocketUpgrader WebSocketUpgrader->Upgrader

Types Conforming to Upgrader

WebSocketUpgrader

Handles upgrading an HTTP connection to a WebSocket

Requirements

apply​Upgrade(req:​res:​)

func applyUpgrade(req: Request, res: Response) -> HTTPServerProtocolUpgrader