MCPcopy Index your code
hub / github.com/coder/coder / client

Method client

coderd/devtunnel/tunnel_test.go:235–249  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

233}
234
235func (s *tunnelServer) client() *http.Client {
236 transport := &http.Transport{
237 DialContext: func(ctx context.Context, network, addr string) (net.Conn, error) {
238 return (&net.Dialer{}).DialContext(ctx, "tcp", s.server.Listener.Addr().String())
239 },
240 TLSClientConfig: &tls.Config{
241 //nolint:gosec
242 InsecureSkipVerify: true,
243 },
244 }
245 return &http.Client{
246 Transport: transport,
247 Timeout: testutil.WaitLong,
248 }
249}
250
251func (s *tunnelServer) config(t *testing.T, version tunnelsdk.TunnelVersion) devtunnel.Config {
252 priv, err := tunnelsdk.GeneratePrivateKey()

Callers 3

configMethod · 0.95
requestTunnelMethod · 0.95
RunFunction · 0.45

Calls 3

DialContextMethod · 0.65
StringMethod · 0.45
AddrMethod · 0.45

Tested by

no test coverage detected