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