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

Method build_remote_config

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

266 /// Creates an `HttpRemoteConfig` with the timeout and security settings
267 /// specified by the user.
268 async fn build_remote_config(&self) -> HttpRemoteConfig {
269 let config = HttpRemoteConfig::new()
270 .with_timeout(Duration::from_secs(self.timeout))
271 .danger_accept_invalid_certs(self.insecure);
272
273 // Clone uses the URL directly — identity inferred from subdomain only.
274 crate::commands::auth::attach_identity(config, &self.url, None).await
275 }
276
277 /// Get the display name for the repository.
278 ///

Calls 3

attach_identityFunction · 0.85
with_timeoutMethod · 0.45