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

Method AddHost

x_net_proxy.go:153–158  ·  view source on GitHub ↗

AddHost specifies a host name that will use the bypass proxy.

(host string)

Source from the content-addressed store, hash-verified

151
152// AddHost specifies a host name that will use the bypass proxy.
153func (p *proxy_PerHost) AddHost(host string) {
154 if strings.HasSuffix(host, ".") {
155 host = host[:len(host)-1]
156 }
157 p.bypassHosts = append(p.bypassHosts, host)
158}
159
160// A Dialer is a means to establish a connection.
161type proxy_Dialer interface {

Callers 1

AddFromStringMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected