proxifier-rs 0.1.106

Simple proxy client library to relay network packets towards a destination target using a proxy. With built-in support for TLS.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! 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),
    /// Implements user password authentication for SOCKS5
    UserPass(String, String),
}