MCPcopy Create free account
hub / github.com/evilsocket/cake / fetch_topology

Function fetch_topology

cake-cli/src/chat.rs:866–875  ·  view source on GitHub ↗
(client: &Client, server: &str)

Source from the content-addressed store, hash-verified

864}
865
866async fn fetch_topology(client: &Client, server: &str) -> Result<TopologyResponse> {
867 let resp = client
868 .get(format!("{}/api/v1/topology", server))
869 .send()
870 .await?;
871 if !resp.status().is_success() {
872 anyhow::bail!("topology API error: {}", resp.status());
873 }
874 Ok(resp.json().await?)
875}
876
877// ── Main loop ──────────────────────────────────────────────────────────────
878

Callers 1

run_appFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected