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

Function httpClient

credhub/client.go:30–39  ·  view source on GitHub ↗
(timeout *time.Duration)

Source from the content-addressed store, hash-verified

28}
29
30func httpClient(timeout *time.Duration) *http.Client {
31 if timeout == nil {
32 t := 45 * time.Second
33 timeout = &t
34 }
35
36 return &http.Client{
37 Timeout: *timeout,
38 }
39}
40
41func httpsClient(insecureSkipVerify bool, rootCAs *x509.CertPool, cert *tls.Certificate, timeout *time.Duration) *http.Client {
42 client := httpClient(timeout)

Callers 2

clientMethod · 0.85
httpsClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…