Create a client with a TLS connection to the server # Arguments `base_path` - base path of the client API, i.e. "https://www.my-api-implementation.com"
(base_path: &str)
| 255 | /// # Arguments |
| 256 | /// * `base_path` - base path of the client API, i.e. "https://www.my-api-implementation.com" |
| 257 | pub fn try_new_https(base_path: &str) -> Result<Self, ClientInitError> { |
| 258 | let https_connector = Connector::builder() |
| 259 | .https() |
| 260 | .build() |
| 261 | .map_err(ClientInitError::SslError)?; |
| 262 | Self::try_new_with_connector(base_path, Some("https"), https_connector) |
| 263 | } |
| 264 | |
| 265 | /// Create a client with a TLS connection to the server using a pinned certificate |
| 266 | /// |