Versions in this module Expand all Collapse all v1 v1.0.39 Oct 28, 2026 v1.0.38 Oct 20, 2026 Changes in this version + const HeadroomRatio + const OffHeapBufferMB + var ErrBlockedIP = errors.New("connection blocked by SSRF guard") + var ErrInvalidScheme = errors.New("invalid URL scheme: must be http or https") + var ErrMissingHost = errors.New("url is missing host") + func DeduplicateStrings(strings []string) []string + func EnsureMemoryHeadroom(maxHeapMB int, configuredContainerMB int) (int, int64) + func NewSafeHTTPClient(timeout time.Duration, allowPrivate bool) *http.Client + func ParseMemoryMB(memStr string) (int, error) + func ValidateIP(ip net.IP, allowPrivate bool) error + func ValidateURL(rawURL string, allowPrivate bool) (*url.URL, error) + func ValidateURLStatic(rawURL string, allowPrivate bool) (*url.URL, error) + type MemoryAllocation struct + ContainerLimitBytes int64 + ContainerLimitMB int + InitMemoryMB int + InitMemoryStr string + MaxMemoryMB int + MaxMemoryStr string + func CalculateMemoryAllocation(allocatedRAMMB int) MemoryAllocation