Instance Methodswift-websocket 1.1.0WSCore
serverExtension(from:)
WebSocketExtensionBuilder.swift:98func serverExtension(from: WebSocketExtensionHTTPParameters) throws -> (any WebSocketExtension)?
func serverExtension(from: WebSocketExtensionHTTPParameters) throws -> (any WebSocketExtension)?
s6WSCore38WebSocketNonNegotiableExtensionBuilderV06serverF04fromAA0bcF0_pSgAA0bcF14HTTPParametersV_tKF
What are these?8T20S
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 clientExtension(from: WebSocketExtensionHTTPParameters) throws -> (any WebSocketExtension)?
func clientRequestHeader() -> String
func serverReponseHeader(to: WebSocketExtensionHTTPParameters) -> String?