MCPcopy Create free account
hub / github.com/cli/cli / RoundTrip

Method RoundTrip

api/http_client.go:232–240  ·  view source on GitHub ↗
(req *http.Request)

Source from the content-addressed store, hash-verified

230}
231
232func (t telemetryDisablerTransport) RoundTrip(req *http.Request) (*http.Response, error) {
233 // If the request is aimed at an enterprise host, disable telemetry.
234 // Currently, requests that are sent to configured api_hosts will be treated as enterprise hosts,
235 // even though they may be GHEC with Data Residency.
236 if ghauth.IsEnterprise(getHostname(req)) {
237 t.telemetryDisabler.Disable()
238 }
239 return t.wrappedTransport.RoundTrip(req)
240}

Callers

nothing calls this directly

Calls 3

getHostnameFunction · 0.85
DisableMethod · 0.65
RoundTripMethod · 0.45

Tested by

no test coverage detected