pub struct ChallengeReply(/* private fields */);Expand description
Answers a challenge. Dropping it unanswered delivers the 401 (or 407) as the response.
Implementations§
Source§impl ChallengeReply
impl ChallengeReply
Sourcepub fn credential(self, user: impl Into<String>, password: impl Into<String>)
pub fn credential(self, user: impl Into<String>, password: impl Into<String>)
Answer with a user name and password. The client writes Basic or Digest to match the challenge; a platform stack answering NTLM or Negotiate itself takes them as they are.
Sourcepub fn default_handling(self)
pub fn default_handling(self)
Offer nothing: the challenge response is the response.
Sourcepub fn cancel(self)
pub fn cancel(self)
Abandon the request; it fails with HttpError::Cancelled.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ChallengeReply
impl !UnwindSafe for ChallengeReply
impl Forget for ChallengeReply
impl Freeze for ChallengeReply
impl Move for ChallengeReply
impl Send for ChallengeReply
impl Sync for ChallengeReply
impl Unpin for ChallengeReply
impl UnsafeUnpin for ChallengeReply
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