MCPcopy
hub / github.com/monasticacademy/httptap / proxyHTTP

Function proxyHTTP

http.go:179–181  ·  view source on GitHub ↗

Service an incoming HTTP connection on conn by sending a request out to the world through dst. All HTTP requests sent to dst will have a context containing a value for the key dialToContextKey.

(dst http.RoundTripper, conn net.Conn)

Source from the content-addressed store, hash-verified

177// Service an incoming HTTP connection on conn by sending a request out to the world through dst.
178// All HTTP requests sent to dst will have a context containing a value for the key dialToContextKey.
179func proxyHTTP(dst http.RoundTripper, conn net.Conn) {
180 proxyHTTPScheme(dst, conn, "http")
181}
182
183// Service an incoming HTTP connection on conn by sending a request out to the world through dst.
184// If the URL in the request does not contain a scheme, use the specified scheme for the proxied request.

Callers 1

MainFunction · 0.85

Calls 1

proxyHTTPSchemeFunction · 0.85

Tested by

no test coverage detected