Replies: 1 comment
-
Actually I want to change defaultHTTPClient's Timeout, so it seems that I could only copy the code to build http.Client and use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using golang docker client API and I tried to add default timeout for it. I found that I could use
client.WithDialer
to change http client transport'sDialContext
:But once I changed the DialContext, it will lost something in
defaultHTTPClient
. For example. I have to parse unix addr again because thesockets.ConfigureTransport
only change Transport.Dial. So I want to ask for a better way to set client default timeout. Thanks.Beta Was this translation helpful? Give feedback.
All reactions