INNER CODE UNIT · Go
proxy
feiyu563/PrometheusAlert · controllers/7moor.go:81
proxy := func(_ *http.Request) (*url.URL, error) {
return url.Parse(proxyUrl)
}
tr = &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
Proxy: proxy,
}
} else {
tr = &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
}
}
client := &http.Client{Transport: tr}
// need set headers
req, err := http.NewRequest("POST", urlPath, b)
if err != nil {
logs.Error(logsign, "[7moordx]", err.Error())