We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4958d1 commit b50c5d3Copy full SHA for b50c5d3
src/easy/handler.rs
@@ -3779,6 +3779,14 @@ impl Auth {
3779
self.flag(curl_sys::CURLAUTH_AWS_SIGV4, on)
3780
}
3781
3782
+ /// HTTP Auto authentication.
3783
+ ///
3784
+ /// This is a combination for CURLAUTH_BASIC | CURLAUTH_DIGEST |
3785
+ /// CURLAUTH_GSSNEGOTIATE | CURLAUTH_NTLM
3786
+ pub fn auto(&mut self, on: bool) -> &mut Auth {
3787
+ self.flag(curl_sys::CURLAUTH_ANY, on)
3788
+ }
3789
+
3790
fn flag(&mut self, bit: c_ulong, on: bool) -> &mut Auth {
3791
if on {
3792
self.bits |= bit as c_long;
0 commit comments