File tree 3 files changed +9
-1
lines changed
3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -907,6 +907,7 @@ pub const CURL_VERSION_TLSAUTH_SRP: c_int = 1 << 14;
907
907
pub const CURL_VERSION_NTLM_WB : c_int = 1 << 15 ;
908
908
pub const CURL_VERSION_HTTP2 : c_int = 1 << 16 ;
909
909
pub const CURL_VERSION_UNIX_SOCKETS : c_int = 1 << 19 ;
910
+ pub const CURL_VERSION_HTTPS_PROXY : c_int = 1 << 21 ;
910
911
pub const CURL_VERSION_BROTLI : c_int = 1 << 23 ;
911
912
pub const CURL_VERSION_ALTSVC : c_int = 1 << 24 ;
912
913
pub const CURL_VERSION_HTTP3 : c_int = 1 << 25 ;
Original file line number Diff line number Diff line change @@ -140,6 +140,11 @@ impl Version {
140
140
self . flag ( curl_sys:: CURL_VERSION_UNIX_SOCKETS )
141
141
}
142
142
143
+ /// Returns whether libcurl was built with support for HTTPS proxy.
144
+ pub fn feature_https_proxy ( & self ) -> bool {
145
+ self . flag ( curl_sys:: CURL_VERSION_HTTPS_PROXY )
146
+ }
147
+
143
148
/// Returns whether libcurl was built with support for HTTP2.
144
149
pub fn feature_http2 ( & self ) -> bool {
145
150
self . flag ( curl_sys:: CURL_VERSION_HTTP2 )
@@ -413,6 +418,7 @@ impl fmt::Debug for Version {
413
418
"feature_unix_domain_socket" ,
414
419
& self . feature_unix_domain_socket ( ) ,
415
420
)
421
+ . field ( "feature_https_proxy" , & self . feature_https_proxy ( ) )
416
422
. field ( "feature_altsvc" , & self . feature_altsvc ( ) )
417
423
. field ( "feature_zstd" , & self . feature_zstd ( ) )
418
424
. field ( "feature_unicode" , & self . feature_unicode ( ) )
Original file line number Diff line number Diff line change @@ -190,7 +190,8 @@ fn main() {
190
190
| "CURLOPT_PROXY_SSLCERTTYPE"
191
191
| "CURLOPT_PROXY_SSLKEY"
192
192
| "CURLOPT_PROXY_SSLKEYTYPE"
193
- | "CURLOPT_PROXY_SSLVERSION" => return true ,
193
+ | "CURLOPT_PROXY_SSLVERSION"
194
+ | "CURL_VERSION_HTTPS_PROXY" => return true ,
194
195
_ => { }
195
196
}
196
197
}
You can’t perform that action at this time.
0 commit comments