Versions in this module Expand all Collapse all v1 v1.16.0 Nov 12, 2026 Changes in this version + var ErrBlocked = errors.New("safehttp: blocked") + var ErrTooLarge = errors.New("safehttp: response body too large") + func Get(ctx context.Context, url string) (*http.Response, error) + func New(opts Options) *http.Client + func Public(a netip.Addr) bool + type Options struct + Allow []netip.Prefix + MaxBody int64 + MaxRedirects int + Ports []string + Timeout time.Duration