Versions in this module Expand all Collapse all v0 v0.3.0 Oct 30, 2026 Changes in this version + const DefaultTimeout + const PerHost + func Host(u *url.URL) string + type Client struct + func New(opts Options) (*Client, error) + func (c *Client) Get(ctx context.Context, rawURL string) (*Download, error) + type Download struct + Body io.ReadCloser + FinalURL string + Started time.Time + type Failure struct + Err error + Outcome Outcome + Status int + func Classify(ctx context.Context, err error) *Failure + func (f *Failure) Error() string + func (f *Failure) Unwrap() error + type Options struct + Timeout time.Duration + Transport http.RoundTripper + UserAgent string + type Outcome string + const Cancelled + const HTTPError + const Network + const NotFound + const NotPDF + const OK + const RedirectLoop + const Refused + const Timeout + const TooLarge