MCPcopy Index your code
hub / github.com/cli/cli / handleUnixDomainSocket

Function handleUnixDomainSocket

pkg/cmd/send-telemetry/send_telemetry.go:122–135  ·  view source on GitHub ↗
(socketPath string)

Source from the content-addressed store, hash-verified

120}
121
122func handleUnixDomainSocket(socketPath string) http.RoundTripper {
123 if socketPath == "" {
124 return http.DefaultTransport
125 }
126
127 dialContext := func(ctx context.Context, network, addr string) (net.Conn, error) {
128 return (&net.Dialer{}).DialContext(ctx, "unix", socketPath)
129 }
130
131 return &http.Transport{
132 DialContext: dialContext,
133 DisableKeepAlives: true,
134 }
135}

Callers 1

runSendTelemetryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected