proxifier-rs 0.1.61

Proxy client library supporting SOCKS4/SOCKS5 and HTTP/HTTPS proxies with TLS support
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Auth provides authentication for HTTP/HTTPS and SOCKS5 proxies.
//!
//! See [`Auth`] for a curated list of available authentication methods.

pub enum Auth {
    /// Use when no authentication is required
    NoAuth,
    /// Header name seperated by semicolon and header value such as `Auth::HTTPAuthorizationHeader("Proxy-Authorization: Basic <encoded>".into())`
    HTTPAuthorizationHeader(String),
    UserPass(String, String),
}