MCPcopy Index your code
hub / github.com/cloudflare/cloudflared / ProxyHTTP

Method ProxyHTTP

connection/connection.go:152–152  ·  view source on GitHub ↗
(w ResponseWriter, tr *tracing.TracedHTTPRequest, isWebsocket bool)

Source from the content-addressed store, hash-verified

150// OriginProxy is how data flows from cloudflared to the origin services running behind it.
151type OriginProxy interface {
152 ProxyHTTP(w ResponseWriter, tr *tracing.TracedHTTPRequest, isWebsocket bool) error
153 ProxyTCP(ctx context.Context, rwa ReadWriteAcker, req *TCPRequest) error
154}
155

Callers 10

runIngressTestScenariosFunction · 0.95
TestProxyErrorFunction · 0.95
TestConnectionsFunction · 0.95
ServeHTTPMethod · 0.65
dispatchRequestMethod · 0.65
testProxyHTTPFunction · 0.65
testProxyWebsocketFunction · 0.65
testProxySSEFunction · 0.65
proxyHTTPFunction · 0.65
TestPersistentConnectionFunction · 0.65

Implementers 3

mockOriginProxyWithRequestconnection/quic_connection_test.go
mockOriginProxyconnection/connection_test.go
Proxyproxy/proxy.go

Calls

no outgoing calls

Tested by 8

runIngressTestScenariosFunction · 0.76
TestProxyErrorFunction · 0.76
TestConnectionsFunction · 0.76
testProxyHTTPFunction · 0.52
testProxyWebsocketFunction · 0.52
testProxySSEFunction · 0.52
proxyHTTPFunction · 0.52
TestPersistentConnectionFunction · 0.52