Skip to content

Commit 560fb41

Browse files
committed
Adding comment for WithTransport
1 parent d35e79d commit 560fb41

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

client.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,8 @@ func NewVersionedClient(endpoint string, apiVersionString string) (*Client, erro
222222
return c, nil
223223
}
224224

225+
// WithTransport replaces underlying HTTP client of Docker Client by accepting
226+
// a function that returns pointer to a transport object.
225227
func (c *Client) WithTransport(trFunc func () *http.Transport) {
226228
c.initializeNativeClient(trFunc)
227229
}

0 commit comments

Comments
 (0)