proxifier_rs/auth.rs
1//! Auth provides authentication for HTTP/HTTPS and SOCKS5 proxies.
2//!
3//! See [`Auth`] for a curated list of available authentication methods.
4
5pub enum Auth {
6 /// Use when no authentication is required
7 NoAuth,
8 /// Header name seperated by semicolon and header value such as `Auth::HTTPAuthorizationHeader("Proxy-Authorization: Basic <encoded>".into())`
9 HTTPAuthorizationHeader(String),
10 /// Implements user password authentication for SOCKS5
11 UserPass(String, String),
12}