MCPcopy
hub / github.com/coder/websocket / newForwardProxy

Function newForwardProxy

dial_test.go:340–344  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

338}
339
340func newForwardProxy() *forwardProxy {
341 return &forwardProxy{
342 hc: &http.Client{},
343 }
344}
345
346func (fc *forwardProxy) ServeHTTP(w http.ResponseWriter, r *http.Request) {
347 ctx, cancel := context.WithTimeout(r.Context(), time.Second*10)

Callers 1

TestDialViaProxyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…