MCPcopy Index your code
hub / github.com/code-scan/Goal / SetTimeOut

Method SetTimeOut

Ghttp/http.go:104–111  ·  view source on GitHub ↗
(t int)

Source from the content-addressed store, hash-verified

102 // return err
103}
104func (h *Http) SetTimeOut(t int) {
105 td := time.Duration(t)
106 h.HttpTransport.TLSHandshakeTimeout = td * time.Second
107 h.HttpTransport.ResponseHeaderTimeout = td * time.Second
108 h.HttpTransport.IdleConnTimeout = td * time.Second
109 h.HttpTransport.ExpectContinueTimeout = td * time.Second
110 //h.HttpTransport.DisableKeepAlives = true
111}
112func (h *Http) IgnoreSSL() {
113 h.HttpTransport.TLSClientConfig = &tls.Config{
114 InsecureSkipVerify: true,

Callers 2

NewMethod · 0.95
GetFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected