Skip to main content

http_request/request/proxy/
enum.rs

1/// Proxy protocol family.
2///
3/// Distinguishes the wire format used to reach the proxy server:
4/// plain `HTTP CONNECT` for HTTP proxies, TLS-wrapped `HTTP CONNECT` for
5/// HTTPS proxies, and SOCKS5 handshake for SOCKS5 proxies.
6#[derive(Clone, Copy, Debug, Eq, PartialEq)]
7pub enum ProxyType {
8    /// HTTP proxy (plain TCP, CONNECT method).
9    Http,
10    /// HTTPS proxy (TLS-wrapped CONNECT method).
11    Https,
12    /// SOCKS5 proxy.
13    Socks5,
14}