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

Method build_remote_config

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

334 /// Creates an `HttpRemoteConfig` with the timeout and security settings
335 /// specified by the user.
336 async fn build_remote_config(&self) -> HttpRemoteConfig {
337 let config = HttpRemoteConfig::new()
338 .with_timeout(Duration::from_secs(self.timeout))
339 .danger_accept_invalid_certs(self.insecure);
340
341 // Clone uses the URL directly — identity inferred from subdomain only.
342 atomic_remote::auth::attach_identity(config, &self.url, None).await
343 }
344
345 /// CB-10B Git-transport bootstrap (RFC §7.3/§8.6): `git clone` the
346 /// checkout, initialize Atomic with the checked-out branch's view, and

Calls 3

attach_identityFunction · 0.85
with_timeoutMethod · 0.45