-
Notifications
You must be signed in to change notification settings - Fork 52
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
[golang example] Use http.DefaultClient instead of your own client #5
Comments
Is there a benefit to this approach besides one less line? The httpsnippet project is using the client for a timeout option and I'll probably add a redirect option as well. |
Nothing wrong with it, it's just not idiomatic go (unless you use the client to do something). |
Thanks for the input. Like I said the underlying library has a timeout option so that's why it's there, I might make it as you suggest for when the option is not invoked or maybe just set a default timeout. |
@Montana you could also make two separate implementations and let the user decide which they'd like to use. also, this would be better suited as a discussion on https://github.com/Mashape/httpsnippet |
Closed with Kong/httpsnippet@45a0e36 |
The text was updated successfully, but these errors were encountered: