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

Method build_remote_config

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

201 /// Creates an `HttpRemoteConfig` with the timeout and security settings
202 /// specified by the user.
203 async fn build_remote_config(&self) -> HttpRemoteConfig {
204 let config = HttpRemoteConfig::new()
205 .with_timeout(Duration::from_secs(self.timeout))
206 .danger_accept_invalid_certs(self.insecure);
207
208 // Clone uses the URL directly — identity inferred from subdomain only.
209 crate::commands::auth::attach_identity(config, &self.url, None).await
210 }
211
212 /// Get the display name for the repository.
213 ///

Calls 3

attach_identityFunction · 0.85
with_timeoutMethod · 0.45