Instance Methodswift-websocket 1.1.1WSCore
clientExtension(from:)
WebSocketExtensionBuilder.swift:100func clientExtension(from: WebSocketExtensionHTTPParameters) throws -> (any WebSocketExtension)?
func clientExtension(from: WebSocketExtensionHTTPParameters) throws -> (any WebSocketExtension)?
s6WSCore38WebSocketNonNegotiableExtensionBuilderV06clientF04fromAA0bcF0_pSgAA0bcF14HTTPParametersV_tKF
What are these?HA59
where Extension:WebSocketExtension
import WSCore
struct WebSocketNonNegotiableExtensionBuilder<Extension> where Extension : WebSocketExtension
A WebSocket extension that is applied without any negotiation with the other side
struct WebSocketExtensionHTTPParameters
Parsed parameters from Sec-WebSocket-Extensions
header
protocol WebSocketExtension : Sendable
Protocol for WebSocket extension
func clientRequestHeader() -> String
func serverExtension(from: WebSocketExtensionHTTPParameters) throws -> (any WebSocketExtension)?
func serverReponseHeader(to: WebSocketExtensionHTTPParameters) -> String?