MCPcopy Index your code
hub / github.com/cloudflare/cloudflared / IsWebSocketUpgrade

Function IsWebSocketUpgrade

websocket/websocket.go:12–14  ·  view source on GitHub ↗

IsWebSocketUpgrade checks to see if the request is a WebSocket connection.

(req *http.Request)

Source from the content-addressed store, hash-verified

10
11// IsWebSocketUpgrade checks to see if the request is a WebSocket connection.
12func IsWebSocketUpgrade(req *http.Request) bool {
13 return websocket.IsWebSocketUpgrade(req)
14}
15
16// NewResponseHeader returns headers needed to return to origin for completing handshake
17func NewResponseHeader(req *http.Request) http.Header {

Callers 1

Calls

no outgoing calls

Tested by 1