File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -356,6 +356,11 @@ func (cli *Client) DaemonHost() string {
356356 return cli .host
357357}
358358
359+ // HTTPClient returns a copy of the HTTP client bound to the server
360+ func (cli * Client ) HTTPClient () * http.Client {
361+ return & * cli .client
362+ }
363+
359364// ParseHostURL parses a url string, validates the string is a host url, and
360365// returns the parsed URL
361366func ParseHostURL (host string ) (* url.URL , error ) {
Original file line number Diff line number Diff line change 44 "context"
55 "io"
66 "net"
7+ "net/http"
78 "time"
89
910 "github.com/docker/docker/api/types"
@@ -33,6 +34,7 @@ type CommonAPIClient interface {
3334 VolumeAPIClient
3435 ClientVersion () string
3536 DaemonHost () string
37+ HTTPClient () * http.Client
3638 ServerVersion (ctx context.Context ) (types.Version , error )
3739 NegotiateAPIVersion (ctx context.Context )
3840 NegotiateAPIVersionPing (types.Ping )
You can’t perform that action at this time.
0 commit comments