MCPcopy
hub / github.com/cloudflare/cloudflared / isWebsocketUpgrade

Function isWebsocketUpgrade

connection/http2.go:409–411  ·  view source on GitHub ↗
(r *http.Request)

Source from the content-addressed store, hash-verified

407}
408
409func isWebsocketUpgrade(r *http.Request) bool {
410 return r.Header.Get(InternalUpgradeHeader) == WebsocketUpgrade
411}
412
413func isConfigurationUpdate(r *http.Request) bool {
414 return r.Header.Get(InternalUpgradeHeader) == ConfigurationUpdate

Callers 1

determineHTTP2TypeFunction · 0.85

Calls 1

GetMethod · 0.80

Tested by

no test coverage detected