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

Function stripWebsocketUpgradeHeader

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

Source from the content-addressed store, hash-verified

420}
421
422func stripWebsocketUpgradeHeader(r *http.Request) {
423 r.Header.Del(InternalUpgradeHeader)
424}
425
426// getRequestHost returns the host of the http.Request.
427func getRequestHost(r *http.Request) (string, error) {

Callers 2

ServeHTTPMethod · 0.85
buildHTTPRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected