Struct http_auth::basic::BasicClient [−][src]
pub struct BasicClient { /* fields omitted */ }
This is supported on crate feature
basic-scheme
only.Expand description
Client for a Basic
challenge, as in
RFC 7617.
This implementation always uses UTF-8
. Thus it doesn’t use or store the
charset
parameter, which the RFC only allows to be set to UTF-8
anyway.
Implementations
Responds to the challenge with the supplied parameters.
The caller should use the returned string as an Authorization
or
Proxy-Authorization
header value.
The caller is responsible for username
and password
being in the
correct format. Servers may expect arguments to be in Unicode
Normalization Form C as noted in RFC 7617 section
2.1.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for BasicClient
impl Send for BasicClient
impl Sync for BasicClient
impl Unpin for BasicClient
impl UnwindSafe for BasicClient
Blanket Implementations
Mutably borrows from an owned value. Read more