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

Method HostForAPIHost

api/http_client_test.go:648–651  ·  view source on GitHub ↗
(apiHost string)

Source from the content-addressed store, hash-verified

646}
647
648func (c legacyConfig) HostForAPIHost(apiHost string) (string, bool) {
649 host, ok := c[fmt.Sprintf("%s:%s", "api_host", apiHost)]
650 return host, ok
651}
652
653var requestAtRE = regexp.MustCompile(`(?m)^\* Request at .+`)
654var dateRE = regexp.MustCompile(`(?m)^< Date: .+`)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected