MCPcopy Create free account
hub / github.com/remotemobprogramming/mob / GetNetHttpClient

Function GetNetHttpClient

httpclient/httpclient.go:29–37  ·  view source on GitHub ↗
(disableSSLVerification bool)

Source from the content-addressed store, hash-verified

27}
28
29func 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
39func (c HttpClient) SendRequest(requestBody []byte, requestMethod string, requestUrl string) (string, error) {
40 say.Info(requestMethod + " " + requestUrl + " " + string(requestBody))

Callers 2

getGoalHttpFunction · 0.92
CreateHttpClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected