Structurevapor 4.114.1Vapor
WebSocketUpgrader
Handles upgrading an HTTP connection to a WebSocket
struct WebSocketUpgrader
Handles upgrading an HTTP connection to a WebSocket
struct WebSocketUpgrader
import Vapor
Vapor is a framework for building server applications, APIs and websites in Swift. It provides a safe, performant and scalable foundation for building large complex backends.
protocol Sendable
@preconcurrency protocol Upgrader : Sendable
Conformance for any struct that performs an HTTP Upgrade
@preconcurrency init(maxFrameSize: WebSocketMaxFrameSize, shouldUpgrade: @escaping (() -> EventLoopFuture<HTTPHeaders?>), onUpgrade: @escaping (WebSocket) -> ())
func applyUpgrade(req: Request, res: Response) -> HTTPServerProtocolUpgrader