Versions in this module Expand all Collapse all v0 v0.1.0 Oct 29, 2026 Changes in this version + var ErrNotFound = errors.New("not found") + var ErrRateLimited = errors.New("rate limited") + func DoCapped(hc *http.Client, req *http.Request, limit int64, ...) ([]byte, error) + func NoDowngrade(req *http.Request, via []*http.Request) error + func NoFollow(*http.Request, []*http.Request) error + func RetryAfter(v string) (at time.Time, ok bool) + func SameOrigin(req *http.Request, via []*http.Request) error + func WithRedirect(hc *http.Client, policy func(*http.Request, []*http.Request) error) *http.Client + type RateLimitError struct + Reset time.Time + func (e *RateLimitError) Error() string + func (e *RateLimitError) Is(target error) bool + type StatusError struct + Code int + Status string + func (e *StatusError) Error() string + func (e *StatusError) Is(target error) bool + type Transport struct + Base http.RoundTripper + OnResult func(req *http.Request, resp *http.Response, err error) + UserAgent string + func (t *Transport) CloseIdleConnections() + func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error)