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

Method build_remote_config

atomic-cli/src/commands/clone/command.rs:307–314  ·  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

305 /// Creates an `HttpRemoteConfig` with the timeout and security settings
306 /// specified by the user.
307 async fn build_remote_config(&self) -> HttpRemoteConfig {
308 let config = HttpRemoteConfig::new()
309 .with_timeout(Duration::from_secs(self.timeout))
310 .danger_accept_invalid_certs(self.insecure);
311
312 // Clone uses the URL directly — identity inferred from subdomain only.
313 crate::commands::auth::attach_identity(config, &self.url, None).await
314 }
315
316 /// Get the display name for the repository.
317 ///

Calls 3

attach_identityFunction · 0.85
with_timeoutMethod · 0.45