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

Function IsTCPStream

connection/http2.go:418–420  ·  view source on GitHub ↗

IsTCPStream discerns if the connection request needs a tcp stream proxy.

(r *http.Request)

Source from the content-addressed store, hash-verified

416
417// IsTCPStream discerns if the connection request needs a tcp stream proxy.
418func IsTCPStream(r *http.Request) bool {
419 return r.Header.Get(InternalTCPProxySrcHeader) != ""
420}
421
422func stripWebsocketUpgradeHeader(r *http.Request) {
423 r.Header.Del(InternalUpgradeHeader)

Callers 1

determineHTTP2TypeFunction · 0.85

Calls 1

GetMethod · 0.80

Tested by

no test coverage detected