MCPcopy Create free account
hub / github.com/gorilla/websocket / proxy_NewPerHost

Function proxy_NewPerHost

x_net_proxy.go:44–49  ·  view source on GitHub ↗

NewPerHost returns a PerHost Dialer that directs connections to either defaultDialer or bypass, depending on whether the connection matches one of the configured rules.

(defaultDialer, bypass proxy_Dialer)

Source from the content-addressed store, hash-verified

42// defaultDialer or bypass, depending on whether the connection matches one of
43// the configured rules.
44func proxy_NewPerHost(defaultDialer, bypass proxy_Dialer) *proxy_PerHost {
45 return &proxy_PerHost{
46 def: defaultDialer,
47 bypass: bypass,
48 }
49}
50
51// Dial connects to the address addr on the given network through either
52// defaultDialer or bypass.

Callers 1

proxy_FromEnvironmentFunction · 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…