MCPcopy
hub / github.com/gorilla/websocket / Dial

Method Dial

client.go:116–118  ·  view source on GitHub ↗

Dial creates a new client connection by calling DialContext with a background context.

(urlStr string, requestHeader http.Header)

Source from the content-addressed store, hash-verified

114
115// Dial creates a new client connection by calling DialContext with a background context.
116func (d *Dialer) Dial(urlStr string, requestHeader http.Header) (*Conn, *http.Response, error) {
117 return d.DialContext(context.Background(), urlStr, requestHeader)
118}
119
120var errMalformedURL = errors.New("malformed ws or wss URL")
121

Callers 4

TestHostFunction · 0.95
TestNetDialConnectFunction · 0.95
TestNextProtosFunction · 0.95
NewClientFunction · 0.95

Calls 1

DialContextMethod · 0.95

Tested by 3

TestHostFunction · 0.76
TestNetDialConnectFunction · 0.76
TestNextProtosFunction · 0.76