Answers for "golang http set proxy"

0

golang http set proxy

proxyUrl, err := url.Parse("http://proxyIp:proxyPort")
myClient := &http.Client{Transport: &http.Transport{Proxy: http.ProxyURL(proxyUrl)}}
Posted by: Guest on January-25-2021

Browse Popular Code Answers by Language