-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to use a custom *http.Client #74
Allow to use a custom *http.Client #74
Conversation
BTW some tests seem broken. I can rebase on #70 if you wish. All tests pass except:
|
Thanks for the PR @jybp! Don't worry about rebasing right now. I would like to merge this first and then I'll rebase the huge PR. As for the Though, it would be great if user could be opt-out of this behaviour, maybe it could even be configurable just like in Node.js SDK (we allow passing |
Yes you are correct. This PR allows to implicitly opt-out of that behaviour by setting a
Yes that's also correct. It still uses the default configuration by default (when |
Cool! Whenever that's possible, would also be great to create a new tagged version. That way we can easily update the dependency. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Closes #71
I was very tempted to remove the
github.com/hashicorp/go-retryablehttp
dependency. There's no reason it should be used by default.It's not the responsibility of such library to handle HTTP retries, it should be left at the discretion of consumers.
If I get a go-ahead, I will create a new PR to remove it altogether.
Could a new tag be introduced in this repository once merged?
v0.2.0
should be fine since it's still in thev0
realm.