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

Function getHost

api/http_client.go:197–202  ·  view source on GitHub ↗
(r *http.Request)

Source from the content-addressed store, hash-verified

195}
196
197func getHost(r *http.Request) string {
198 if r.Host != "" {
199 return r.Host
200 }
201 return r.URL.Host
202}
203
204type telemetryDisablerTransport struct {
205 wrappedTransport http.RoundTripper

Callers 2

AddAuthTokenHeaderFunction · 0.85
RoundTripMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected