(disableSSLVerification bool)
| 27 | } |
| 28 | |
| 29 | func GetNetHttpClient(disableSSLVerification bool) *http.Client { |
| 30 | if disableSSLVerification { |
| 31 | transCfg := &http.Transport{ |
| 32 | TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, |
| 33 | } |
| 34 | return &http.Client{Transport: transCfg} |
| 35 | } |
| 36 | return http.DefaultClient |
| 37 | } |
| 38 | |
| 39 | func (c HttpClient) SendRequest(requestBody []byte, requestMethod string, requestUrl string) (string, error) { |
| 40 | say.Info(requestMethod + " " + requestUrl + " " + string(requestBody)) |
no outgoing calls
no test coverage detected