()
| 20 | } |
| 21 | |
| 22 | func (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 | |
| 30 | func httpClient(timeout *time.Duration) *http.Client { |
| 31 | if timeout == nil { |
no test coverage detected