Skip to main content

Module http_connect

Module http_connect 

Source
Expand description

HTTP CONNECT proxy client.

Used when the host has a system HTTP proxy configured, to tunnel a TCP connection by hostname (from the DnsResolutionLog) rather than the raw IP — critical for fake-IP environments where the destination IP only the proxy can resolve. The SOCKS5 equivalent lives in crate::socks5.

Functions§

connect_via_http_proxy
Establishes a TCP tunnel via an HTTP CONNECT proxy (RFC 7231 §4.3.6).