Struct headers_ext::ProxyAuthorization [−][src]
pub struct ProxyAuthorization<C: Credentials>(pub C);
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
Proxy-Authorization = credentials
Example values
Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==Bearer fpKL54jvWmEGVoRdCNjG
Examples
Trait Implementations
impl<C: Clone + Credentials> Clone for ProxyAuthorization<C>[src]
impl<C: Clone + Credentials> Clone for ProxyAuthorization<C>fn clone(&self) -> ProxyAuthorization<C>[src]
fn clone(&self) -> ProxyAuthorization<C>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<C: PartialEq + Credentials> PartialEq for ProxyAuthorization<C>[src]
impl<C: PartialEq + Credentials> PartialEq for ProxyAuthorization<C>fn eq(&self, other: &ProxyAuthorization<C>) -> bool[src]
fn eq(&self, other: &ProxyAuthorization<C>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &ProxyAuthorization<C>) -> bool[src]
fn ne(&self, other: &ProxyAuthorization<C>) -> boolThis method tests for !=.
impl<C: Debug + Credentials> Debug for ProxyAuthorization<C>[src]
impl<C: Debug + Credentials> Debug for ProxyAuthorization<C>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<C: Credentials> Header for ProxyAuthorization<C>[src]
impl<C: Credentials> Header for ProxyAuthorization<C>Auto Trait Implementations
impl<C> Send for ProxyAuthorization<C> where
C: Send,
impl<C> Send for ProxyAuthorization<C> where
C: Send, impl<C> Sync for ProxyAuthorization<C> where
C: Sync,
impl<C> Sync for ProxyAuthorization<C> where
C: Sync,