Use interface for http client #86
Answered
by
earthboundkid
martin-hanzl
asked this question in
Support
-
Currently I have a client which handles retries and other resiliency features and I'd like to replace the default client with it. |
Beta Was this translation helpful? Give feedback.
Answered by
earthboundkid
Aug 22, 2023
Replies: 1 comment 5 replies
-
You should use requests.DoerTransport to turn a non-http.Client Doer into a standard http.RoundTripper. See the discussion on the PR here: #70 |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
earthboundkid
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should use requests.DoerTransport to turn a non-http.Client Doer into a standard http.RoundTripper.
See the discussion on the PR here: #70