MCPcopy Create free account
hub / github.com/cloudfoundry/credhub-cli / Client

Method Client

credhub/client.go:14–20  ·  view source on GitHub ↗

Client provides an unauthenticated http.Client to the CredHub server

()

Source from the content-addressed store, hash-verified

12
13// Client provides an unauthenticated http.Client to the CredHub server
14func (ch *CredHub) Client() *http.Client {
15 if ch.defaultClient == nil {
16 ch.defaultClient = ch.client()
17 }
18
19 return ch.defaultClient
20}
21
22func (ch *CredHub) client() *http.Client {
23 if ch.baseURL.Scheme == "https" {

Callers 1

InfoMethod · 0.95

Calls 1

clientMethod · 0.95

Tested by

no test coverage detected