Versions in this module Expand all Collapse all v0 v0.1.0 Aug 14, 2026 Changes in this version + func DownloadFile(clientHTTP *http.Client, urlFile string, fileOut string) error + func DownloadFileWithProgress(clientHTTP *http.Client, urlFile string, fileOut string, ...) error + func DownloadFileWithResume(clientHTTP *http.Client, urlFile string, fileOut string, ...) error + func DownloadFileWithResumeOptions(clientHTTP *http.Client, urlFile string, fileOut string, ...) error + func IsUnexpectedStatus(err error, code int) bool + func NewClient(shouldAllowInsecureTLS bool) *http.Client + func RetryAfter(err error) time.Duration + type DownloadOptions struct + Limiter *RequestLimiter + type DownloadProgressFunc func(bytesDone int64, bytesTotal int64) + type RangeIgnoredError struct + URL string + func (err RangeIgnoredError) Error() string + type RequestLimiter struct + func NewRequestLimiter(requestInterval time.Duration) *RequestLimiter + func (limiter *RequestLimiter) Wait() + type UnexpectedStatusError struct + CFMitigated string + Code int + RetryAfter time.Duration + Server string + Status string + URL string + func (err UnexpectedStatusError) Error() string