httpclient

package
v1.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDiskCache

func NewDiskCache(basePath string) *diskcache.Cache

NewDiskCache returns a diskcache.Cache with restrictive file permissions (0600 for files, 0700 for directories) to prevent other users from reading cached API responses that may contain sensitive data.

func NewSafeClient

func NewSafeClient() *http.Client

NewSafeClient returns an http.Client that strips authentication headers when following redirects to a different host. This prevents credential leakage if a download URL redirects to an attacker-controlled server.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL