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

Method build_remote_config

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

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

Calls 3

attach_identityFunction · 0.85
with_timeoutMethod · 0.45