2020-11-04 17:50:34 -05:00
|
|
|
package net
|
2019-01-23 19:45:07 -05:00
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
)
|
|
|
|
|
|
|
|
func HttpClientWithEnvironmentProxy() *http.Client {
|
|
|
|
httpClient := &http.Client{
|
|
|
|
Transport: &http.Transport{
|
|
|
|
Proxy: http.ProxyFromEnvironment,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
return httpClient
|
|
|
|
}
|