pub struct ProxyAuthorization(pub Credentials);
Expand description
Proxy-Authorization
header, defined in RFC7235
The Proxy-Authorization
header field allows a user agent to authenticate
itself with an HTTP proxy – usually, but not necessarily, after
receiving a 407 (Proxy Authentication Required) response and the
Proxy-Authenticate
header. Its value consists of credentials containing
the authentication information of the user agent for the realm of the
resource being requested.
§ABNF
Authorization = credentials
§Example values
Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
Bearer fpKL54jvWmEGVoRdCNjG
Tuple Fields§
§0: Credentials
Methods from Deref<Target = Credentials>§
Trait Implementations§
Source§impl Clone for ProxyAuthorization
impl Clone for ProxyAuthorization
Source§fn clone(&self) -> ProxyAuthorization
fn clone(&self) -> ProxyAuthorization
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ProxyAuthorization
impl Debug for ProxyAuthorization
Source§impl Deref for ProxyAuthorization
impl Deref for ProxyAuthorization
Source§type Target = Credentials
type Target = Credentials
The resulting type after dereferencing.
Source§fn deref(&self) -> &Credentials
fn deref(&self) -> &Credentials
Dereferences the value.
Source§impl DerefMut for ProxyAuthorization
impl DerefMut for ProxyAuthorization
Source§fn deref_mut(&mut self) -> &mut Credentials
fn deref_mut(&mut self) -> &mut Credentials
Mutably dereferences the value.
Source§impl Header for ProxyAuthorization
impl Header for ProxyAuthorization
Source§fn name() -> &'static HeaderName
fn name() -> &'static HeaderName
Returns the name of this header. Read more
Source§fn from_values(
values: &mut ValueIter<'_, HeaderValue>,
) -> Result<Option<ProxyAuthorization>, Error>
fn from_values( values: &mut ValueIter<'_, HeaderValue>, ) -> Result<Option<ProxyAuthorization>, Error>
Parses the header from the raw value bytes. Read more
Source§impl PartialEq for ProxyAuthorization
impl PartialEq for ProxyAuthorization
impl StructuralPartialEq for ProxyAuthorization
Auto Trait Implementations§
impl Freeze for ProxyAuthorization
impl RefUnwindSafe for ProxyAuthorization
impl Send for ProxyAuthorization
impl Sync for ProxyAuthorization
impl Unpin for ProxyAuthorization
impl UnwindSafe for ProxyAuthorization
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