Versions in this module Expand all Collapse all v0 v0.4.0 Nov 3, 2026 Changes in this version + const DefaultTimeout + const LongTimeout + func New(opts ...Option) *http.Client + func NewDefault() *http.Client + func NewForExternal(net NetworkProxyConfig, timeout time.Duration) *http.Client + func NewLong() *http.Client + func RedactURLError(err error) error + func SafeDownloadCheckRedirect(maxRedirects int) func(req *http.Request, via []*http.Request) error + func ValidateDownloadURL(raw string) error + type NetworkProxyConfig interface + GetHTTPProxy func() string + GetHTTPSProxy func() string + GetNoProxy func() string + type Option func(*Options) + func WithProxyConfig(httpProxy, httpsProxy, noProxy string) Option + func WithTimeout(d time.Duration) Option + type Options struct + Timeout time.Duration + Transport *http.Transport