-
Notifications
You must be signed in to change notification settings - Fork 214
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
No way to parse proxies / http transport with hystrix client? #102
Comments
Couldn't you use the Custom HTTP client functionality like so?
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is my hystrix client:
I cant seem a way to parse in proxies so it sends requests from different IP addresses.
This is how I would do it in net/http:
proxy := "http://" + selectProxy
proxyURL, _ := url.Parse(proxy)
transport := &http.Transport{Proxy: http.ProxyURL(proxyURL)}
client := &http.Client{Transport: transport, Timeout: 5 * time.Second}
Any help or tips to parse in the http transport/ dial or proxies with the hystrix client would be appreciated.
The text was updated successfully, but these errors were encountered: