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

Method build_remote_config

atomic-cli/src/commands/pull/command.rs:308–318  ·  view source on GitHub ↗

Build the HTTP remote configuration. `identity_hint` — explicit identity name to use (from `--identity` or `RemoteEntry.identity`). When `None`, falls back to URL-based inference.

(
        &self,
        remote_url: &str,
        identity_hint: Option<&str>,
    )

Source from the content-addressed store, hash-verified

306 /// `identity_hint` — explicit identity name to use (from `--identity` or
307 /// `RemoteEntry.identity`). When `None`, falls back to URL-based inference.
308 async fn build_remote_config(
309 &self,
310 remote_url: &str,
311 identity_hint: Option<&str>,
312 ) -> HttpRemoteConfig {
313 let config = HttpRemoteConfig::new()
314 .with_timeout(Duration::from_secs(self.timeout))
315 .danger_accept_invalid_certs(self.insecure);
316
317 crate::commands::auth::attach_identity(config, remote_url, identity_hint).await
318 }
319
320 /// Display the dry run preview.
321 ///

Calls 3

attach_identityFunction · 0.85
with_timeoutMethod · 0.45