MCPcopy
hub / github.com/kubernetes/client-go / Dial

Method Dial

transport/spdy/spdy.go:69–75  ·  view source on GitHub ↗
(protocols ...string)

Source from the content-addressed store, hash-verified

67}
68
69func (d *dialer) Dial(protocols ...string) (httpstream.Connection, string, error) {
70 req, err := http.NewRequest(d.method, d.url.String(), nil)
71 if err != nil {
72 return nil, "", fmt.Errorf("error creating request: %v", err)
73 }
74 return Negotiate(d.upgrader, d.client, req, protocols...)
75}
76
77// Negotiate opens a connection to a remote server and attempts to negotiate
78// a SPDY connection. Upon success, it returns the connection and the protocol selected by

Callers 2

TestAnonymousConfigFunction · 0.45
TestCopyConfigFunction · 0.45

Calls 3

NegotiateFunction · 0.85
StringMethod · 0.65
ErrorfMethod · 0.65

Tested by 2

TestAnonymousConfigFunction · 0.36
TestCopyConfigFunction · 0.36