Skip to content
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

client: Implement DoRedirects #765

Merged
merged 1 commit into from
Mar 25, 2020
Merged

Conversation

tsenart
Copy link
Contributor

@tsenart tsenart commented Mar 15, 2020

This commit adds a DoRedirects method to both HostClient and
Client as well as top level convenience function of the same name that
is called with the package level defaultClient.

Re-implementing this redirect logic in user code is harder than
necessary.

For context, this is the first of possibly many PRs that I'm contributing as part of my effort to integrate Vegeta with this library. See tsenart/vegeta#500

This commit adds a `DoRedirects` method to both `HostClient` and
`Client` as well as top level convenience function of the same name that
is called with the package level `defaultClient`.

Re-implementing this redirect logic in user code is harder than
necessary.
@erikdubbelboer erikdubbelboer merged commit 75c6008 into valyala:master Mar 25, 2020
@erikdubbelboer
Copy link
Collaborator

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants