Documentation
¶
Overview ¶
Package proxy detects system proxy configuration for the httpc library.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Detector ¶
type Detector struct{}
Detector provides automatic system proxy detection
func (*Detector) GetProxyFunc ¶
GetProxyFunc returns a proxy function that automatically detects system proxy settings. It returns nil if no proxy is configured, which means direct connection.
Detection runs on every call — no cache. The only production caller (connection.NewPoolManager) calls this exactly once per Detector, so a double-checked-locking cache guarded concurrency that never occurs while freezing the first detection for the Detector's lifetime (surprising for anything named "auto-detect").