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

Method client

credhub/client.go:22–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20}
21
22func (ch *CredHub) client() *http.Client {
23 if ch.baseURL.Scheme == "https" {
24 return httpsClient(ch.insecureSkipVerify, ch.caCerts, ch.clientCertificate, ch.httpTimeout)
25 }
26
27 return httpClient(ch.httpTimeout)
28}
29
30func httpClient(timeout *time.Duration) *http.Client {
31 if timeout == nil {

Callers 1

ClientMethod · 0.95

Calls 2

httpsClientFunction · 0.85
httpClientFunction · 0.85

Tested by

no test coverage detected