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

Function remote_config

libatomic/src/daemon/services_sync_remote.rs:143–155  ·  view source on GitHub ↗

The HTTP remote config from the request knobs + the client's auth headers.

(
    timeout_secs: u64,
    insecure: bool,
    auth_headers: &HashMap<String, String>,
)

Source from the content-addressed store, hash-verified

141/// The HTTP remote config from the request knobs + the client's auth
142/// headers.
143fn remote_config(
144 timeout_secs: u64,
145 insecure: bool,
146 auth_headers: &HashMap<String, String>,
147) -> HttpRemoteConfig {
148 let mut config = HttpRemoteConfig::new()
149 .with_timeout(Duration::from_secs(timeout_secs))
150 .danger_accept_invalid_certs(insecure);
151 for (name, value) in auth_headers {
152 config = config.with_header(name.clone(), value.clone());
153 }
154 config
155}
156
157/// The local `build_view_chain` — the ancestor chain, root → leaf, with
158/// the cycle guard.

Callers 2

push_changes_implFunction · 0.85
pull_changes_implFunction · 0.85

Calls 4

with_timeoutMethod · 0.45
with_headerMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected