pub enum ProxyAuth {
Basic {
username: String,
password: String,
},
Custom(String),
}Expand description
Credentials presented to the proxy itself, sent as Proxy-Authorization.
This is separate from any authentication the origin server asks for. Credentials embedded
in the proxy URL (http://user:pass@proxy:8080) work too, but anything needing escaping is
easier to get right here.
Variants§
Basic
Proxy-Authorization: Basic <base64(username:password)>.
Fields
Custom(String)
A verbatim Proxy-Authorization header value, for schemes other than Basic
(e.g. "Bearer <token>"). Rejected at Fetcher::new
if it is not a valid header value.
Trait Implementations§
impl Eq for ProxyAuth
impl StructuralPartialEq for ProxyAuth
Auto Trait Implementations§
impl Freeze for ProxyAuth
impl RefUnwindSafe for ProxyAuth
impl Send for ProxyAuth
impl Sync for ProxyAuth
impl Unpin for ProxyAuth
impl UnsafeUnpin for ProxyAuth
impl UnwindSafe for ProxyAuth
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.