(t int)
| 102 | // return err |
| 103 | } |
| 104 | func (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 | } |
| 112 | func (h *Http) IgnoreSSL() { |
| 113 | h.HttpTransport.TLSClientConfig = &tls.Config{ |
| 114 | InsecureSkipVerify: true, |