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

Method ProxyTCP

connection/connection.go:153–153  ·  view source on GitHub ↗
(ctx context.Context, rwa ReadWriteAcker, req *TCPRequest)

Source from the content-addressed store, hash-verified

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
156// TCPRequest defines the input format needed to perform a TCP proxy.

Callers 4

TestConnectionsFunction · 0.95
ServeHTTPMethod · 0.65
dispatchRequestMethod · 0.65
proxyTCPFunction · 0.65

Implementers 3

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

Calls

no outgoing calls

Tested by 2

TestConnectionsFunction · 0.76
proxyTCPFunction · 0.52