Skip to main content

Module proxy

Module proxy 

Source
Expand description

HTTP CONNECT proxy support.

Corporate firewalls often expose an HTTP CONNECT proxy (Squid, Blue Coat, Zscaler, etc.). This module implements the client side: open a TCP connection to the proxy, send CONNECT target:port HTTP/1.1, parse the 200 Connection established response, and return the underlying TcpStream which is now tunneled to the target.

SOCKS5 is out of scope for Phase 1 — see notes/TODO.md.

Structs§

ProxiedConnection
A connection that routes through a local TCP listener backed by an HTTP CONNECT proxy. Used for backends (MySQL, MSSQL, Oracle) that do not accept a pre-built stream.
ProxyConfig
Parsed proxy configuration.

Functions§

is_no_proxy
Check whether the target host is covered by the NO_PROXY environment variable.
resolve_proxy_from_env
Resolve proxy configuration from the standard environment variable stack.