Versions in this module Expand all Collapse all v2 v2.0.0 Sep 21, 2026 Changes in this version + const DefaultTimeout + type Fetcher struct + func New(rawURL string, opts ...Option) (*Fetcher, error) + func (f *Fetcher) Fetch(ctx context.Context, maxBytes int64) ([]byte, error) + func (f *Fetcher) Retry() RetryPolicy + func (f *Fetcher) URL() string + type Option func(*settings) + func WithAuthorization(value string) Option + func WithClient(c *httpkit.Client) Option + func WithHeader(name, value string) Option + func WithInsecureSkipVerify() Option + func WithRetry(p RetryPolicy) Option + func WithTimeout(d time.Duration) Option + func WithUserAgent(ua string) Option + type RetryPolicy struct + MaxRetries int + MaxRetryDelay time.Duration + RetryDelay time.Duration + func DefaultRetryPolicy() RetryPolicy Other modules containing this package github.com/soulteary/parser-kit/v3