giredore/internal/requester/httpclient.go
Stanislav N. aka pztrn 9e5f98a413
All checks were successful
continuous-integration/drone/push Build is passing
Move to mirrorred images for Drone and Dockerfile, linting fixes.
2022-06-29 15:04:57 +05:00

25 lines
434 B
Go

package requester
import (
"net"
"net/http"
"time"
)
// nolint:exhaustivestruct
func getHTTPClient() *http.Client {
// nolint:exhaustruct
client := &http.Client{
Transport: &http.Transport{
ExpectContinueTimeout: time.Second * 5,
DialContext: (&net.Dialer{
Timeout: time.Second * 5,
}).DialContext,
ResponseHeaderTimeout: time.Second * 5,
TLSHandshakeTimeout: time.Second * 10,
},
}
return client
}