Skip to main content

Module proxy

Module proxy 

Source
Expand description

HTTP CONNECT and SOCKS5 proxy connectors.

ProxyConnector tunnels TCP connections through an HTTP CONNECT proxy. Socks5Connector tunnels TCP connections through a SOCKS5 proxy (RFC 1928/1929). Both implement tower_service::Service<http::Uri> and return a hyper_util::rt::TokioIo<tokio::net::TcpStream> suitable for use as an inner connector inside OxiHttpsConnector or directly with a hyper legacy Client.

Structs§

ProxyConnector
A tower_service::Service<Uri> that connects through an HTTP CONNECT proxy.

Enums§

ProxyKind
Selects the proxy protocol for ClientBuilder::build_proxy* methods.