Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTransport ¶
NewTransport creates an http.Transport cloned from http.DefaultTransport with proxy configured. If proxyURL is empty, no proxy is set and Go's default behavior (HTTP_PROXY env var) applies. Invalid proxy URLs are silently ignored (proxy validation happens at the system settings layer).
func ResolveProxyURL ¶
ResolveProxyURL returns the first non-empty URL from the given list. Callers pass URLs in priority order (e.g., channel-level, DB setting, config file). Returns "" if all are empty, which tells Go's HTTP stack to fall back to the HTTP_PROXY / HTTPS_PROXY environment variables.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.