MCPcopy Index your code
hub / github.com/coder/coder / IsWebsocketUpgrade

Function IsWebsocketUpgrade

coderd/httpapi/request.go:11–19  ·  view source on GitHub ↗
(r *http.Request)

Source from the content-addressed store, hash-verified

9)
10
11func IsWebsocketUpgrade(r *http.Request) bool {
12 vs := r.Header.Values("Upgrade")
13 for _, v := range vs {
14 if v == "websocket" {
15 return true
16 }
17 }
18 return false
19}

Callers 1

PrometheusFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected