()
| 95 | } |
| 96 | |
| 97 | func httpConfig() *http.Client { |
| 98 | return &http.Client{ |
| 99 | Transport: &http.Transport{ |
| 100 | Proxy: http.ProxyFromEnvironment, |
| 101 | TLSClientConfig: nil, |
| 102 | // In general we want to follow docker/daemon/client.defaultHTTPClient , as long as it doesn’t affect compatibility. |
| 103 | // These idle connection limits really only apply to long-running clients, which is not our case here; |
| 104 | // we include the same values purely for symmetry. |
| 105 | MaxIdleConns: 6, |
| 106 | IdleConnTimeout: 30 * time.Second, |
| 107 | }, |
| 108 | CheckRedirect: dockerclient.CheckRedirect, |
| 109 | } |
| 110 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…