MCPcopy
hub / github.com/httprunner/httprunner / convertToHTTPClient

Function convertToHTTPClient

hrp/pkg/uixt/client.go:96–105  ·  view source on GitHub ↗
(conn net.Conn)

Source from the content-addressed store, hash-verified

94}
95
96func convertToHTTPClient(conn net.Conn) *http.Client {
97 return &http.Client{
98 Transport: &http.Transport{
99 DialContext: func(_ context.Context, _, _ string) (net.Conn, error) {
100 return conn, nil
101 },
102 },
103 Timeout: 0,
104 }
105}

Callers 3

NewHTTPDriverMethod · 0.85
NewUSBDriverMethod · 0.85
NewUIADriverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected