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

Method HostForAPIHost

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

Source from the content-addressed store, hash-verified

707}
708
709func (c legacyConfig) HostForAPIHost(apiHost string) (string, bool) {
710 host, ok := c[fmt.Sprintf("%s:%s", "api_host", apiHost)]
711 return host, ok
712}
713
714var requestAtRE = regexp.MustCompile(`(?m)^\* Request at .+`)
715var dateRE = regexp.MustCompile(`(?m)^< Date: .+`)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected