-
Notifications
You must be signed in to change notification settings - Fork 705
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
What's the idiomatic way of changing proxies for the client? #740
Comments
this can help you package main
import (
"log"
"github.com/gospider007/requests"
)
func main() {
resp, err := requests.Get(nil, "https://httpbin.org/anything", requests.RequestOption{
Proxy: "", //set proxy,ex:"http://127.0.0.1:8080","https://127.0.0.1:8080","socks5://127.0.0.1:8080"
})
if err != nil {
log.Panic(err)
}
if resp.StatusCode() != 200 {
log.Panic("status code is not 200")
}
} |
@rew1nter Thanks for reaching out; I'm sorry for the delay. Note: Resty v3 comes with a lock and many new features. |
Hello @gospider007 - I'm glad to see a new open-source developer on GitHub. Welcome to the Open source community! https://github.com/search?q=repo%3Ago-resty%2Fresty+gospider007&type=issues |
I'm currently doing smth like this which I don't think is the best way to change proxies. How's this intended to be done?
The text was updated successfully, but these errors were encountered: