pub struct ProxyAuth { /* private fields */ }Expand description
Credentials for Proxy-Authorization: Basic authentication (RFC 3507 §7.1).
Supply via ClientBuilder::proxy_auth. When the ICAP server responds
with 407 Proxy Authentication Required, the client retries the request
once with a Proxy-Authorization: Basic <base64(username:password)> header.
§Examples
use icap_rs::{Client, ProxyAuth};
let client = Client::builder()
.host("127.0.0.1")
.proxy_auth("user", "secret")
.build();Trait Implementations§
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