Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
11
func
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
Prometheus
Function · 0.92
Calls
no outgoing calls
Tested by
no test coverage detected