Protocolswift-websocket 1.1.0WSCore
WebSocketExtensionBuilder
Protocol for WebSocket extension builder
protocol WebSocketExtensionBuilder : Sendable
Browse conforming typesProtocol for WebSocket extension builder
protocol WebSocketExtensionBuilder : Sendable
import WSCore
protocol Sendable
static var name: String { get }
name of WebSocket extension name
func clientExtension(from: WebSocketExtensionHTTPParameters) throws -> (any WebSocketExtension)?
construct client version of extension based of server response
func clientRequestHeader() -> String
construct client request header
func serverExtension(from: WebSocketExtensionHTTPParameters) throws -> (any WebSocketExtension)?
construct server version of extension based of client request
func serverReponseHeader(to: WebSocketExtensionHTTPParameters) -> String?
construct server response header based of client request
func clientExtension(from requests: [WebSocketExtensionHTTPParameters]) throws -> (any WebSocketExtension)?
construct all client extensions based of all server responses
func serverExtension(from requests: [WebSocketExtensionHTTPParameters]) throws -> (any WebSocketExtension)?
construct all server extensions based of all client requests
func serverResponseHeader(to requests: [WebSocketExtensionHTTPParameters]) -> String?
construct server response header based of all client requests