Versions in this module Expand all Collapse all v0 v0.1.0 Oct 5, 2026 Changes in this version + const DefaultMaxRedirects + const DefaultMaxResponseSize + const DefaultTimeout + var DefaultAllowedMethods = []string + type AllowedURLEntry struct + Transform []RequestTransform + URL string + type Config struct + AllowedMethods []string + AllowedURLPrefixes []AllowedURLEntry + DNSResolve func(ctx context.Context, host string) ([]DNSLookupResult, error) + DangerouslyAllowFullAccess bool + DenyPrivateRanges bool + MaxRedirects int + MaxResponseSize int64 + Timeout time.Duration + type DNSLookupResult struct + Address string + Family int + type Doer interface + Do func(ctx context.Context, req *http.Request) (*Response, error) + func NewSecureFetch(cfg *Config) Doer + type MethodNotAllowedError struct + Method string + URL string + func (e *MethodNotAllowedError) Error() string + type NetworkAccessDeniedError struct + Reason string + URL string + func (e *NetworkAccessDeniedError) Error() string + type RedirectNotAllowedError struct + From string + To string + func (e *RedirectNotAllowedError) Error() string + type RequestTransform struct + Headers map[string]string + type Response struct + Body []byte + Headers http.Header + Status int + StatusText string + URL string + type ResponseTooLargeError struct + Max int64 + func (e *ResponseTooLargeError) Error() string + type TooManyRedirectsError struct + Max int + func (e *TooManyRedirectsError) Error() string