@@ -71,7 +71,7 @@ impl HttpsBuilder {
71
71
///
72
72
/// * `ca_certificate` - Path to CA certificate used to authenticate the server
73
73
#[ cfg( not( any( target_os = "macos" , target_os = "windows" , target_os = "ios" ) ) ) ]
74
- pub fn pin_server < CA > ( mut self , ca_certificate : CA ) -> Self
74
+ pub fn pin_server_certificate < CA > ( mut self , ca_certificate : CA ) -> Self
75
75
where
76
76
CA : AsRef < Path > ,
77
77
{
@@ -86,7 +86,7 @@ impl HttpsBuilder {
86
86
/// * `client_key` - Path to the client private key
87
87
/// * `client_certificate` - Path to the client's public certificate associated with the private key
88
88
#[ cfg( not( any( target_os = "macos" , target_os = "windows" , target_os = "ios" ) ) ) ]
89
- pub fn client < K , C > ( mut self , client_key : K , client_certificate : C ) -> Self
89
+ pub fn client_authentication < K , C > ( mut self , client_key : K , client_certificate : C ) -> Self
90
90
where
91
91
K : AsRef < Path > ,
92
92
C : AsRef < Path > ,
@@ -130,7 +130,7 @@ impl HttpsBuilder {
130
130
}
131
131
132
132
#[ cfg( any( target_os = "macos" , target_os = "windows" , target_os = "ios" ) ) ]
133
- /// Build the HTTPS connector. Will if the SSL connector can't be created.
133
+ /// Build the HTTPS connector. Will fail if the SSL connector can't be created.
134
134
pub fn build (
135
135
self ,
136
136
) -> Result < hyper_tls:: HttpsConnector < hyper:: client:: HttpConnector > , native_tls:: Error > {
0 commit comments