MCPcopy Create free account
hub / github.com/ceramicnetwork/rust-ceramic / try_new_https

Method try_new_https

kubo-rpc-server/src/client/mod.rs:257–263  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 ///

Callers

nothing calls this directly

Calls 1

buildMethod · 0.45

Tested by

no test coverage detected