serverExtensionNegotiation(requestHeaders:)

Do the client/server WebSocket negotiation based off headers received from the client.

WebSocketExtensionBuilder.swift:117
func serverExtensionNegotiation(requestHeaders: HTTPFields) throws -> (HTTPFields, [any WebSocketExtension])

Parameters

requestHeaders

Client request headers

Returns

Headers to pass back to client and array of server extensions to enable