httpproxy

package
v0.82.2 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const UnsupportedProxyProtocolMessage = "Unsupported proxy protocol. SOCKS and PAC proxy URLs are not supported; use an HTTP or HTTPS proxy URL."

Variables

This section is empty.

Functions

func ResolveHTTPProxyURLForTarget

func ResolveHTTPProxyURLForTarget(targetURL string) (*url.URL, error)

func ResolveHTTPProxyURLForTargetWithLookup added in v0.82.0

func ResolveHTTPProxyURLForTargetWithLookup(
	targetURL string,
	lookup func(string) string,
) (*url.URL, error)

ResolveHTTPProxyURLForTargetWithLookup resolves proxy variables through a caller-owned lookup. This keeps request-scoped provider configuration out of the process environment.

Types

This section is empty.

Jump to

Keyboard shortcuts

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