()
| 203 | } |
| 204 | |
| 205 | func loadRequestTransport() *http.Transport { |
| 206 | return &http.Transport{ |
| 207 | TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, |
| 208 | DialContext: (&net.Dialer{ |
| 209 | Timeout: 60 * time.Second, |
| 210 | KeepAlive: 60 * time.Second, |
| 211 | }).DialContext, |
| 212 | TLSHandshakeTimeout: 5 * time.Second, |
| 213 | ResponseHeaderTimeout: 10 * time.Second, |
| 214 | IdleConnTimeout: 15 * time.Second, |
| 215 | } |
| 216 | } |