MCPcopy Create free account
hub / github.com/containers/image / httpConfig

Function httpConfig

docker/daemon/client.go:97–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95}
96
97func 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}

Callers 1

newDockerClientFunction · 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…