MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / build_remote_config

Method build_remote_config

atomic-cli/src/commands/clone/command.rs:285–292  ·  view source on GitHub ↗

Build the HTTP remote configuration. Creates an `HttpRemoteConfig` with the timeout and security settings specified by the user.

(&self)

Source from the content-addressed store, hash-verified

283 /// Creates an `HttpRemoteConfig` with the timeout and security settings
284 /// specified by the user.
285 async fn build_remote_config(&self) -> HttpRemoteConfig {
286 let config = HttpRemoteConfig::new()
287 .with_timeout(Duration::from_secs(self.timeout))
288 .danger_accept_invalid_certs(self.insecure);
289
290 // Clone uses the URL directly — identity inferred from subdomain only.
291 crate::commands::auth::attach_identity(config, &self.url, None).await
292 }
293
294 /// Get the display name for the repository.
295 ///

Calls 3

attach_identityFunction · 0.85
with_timeoutMethod · 0.45