MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / get_json

Function get_json

tests/common/mod.rs:551–554  ·  view source on GitHub ↗
(agent: &ureq::Agent, url: &str)

Source from the content-addressed store, hash-verified

549}
550
551pub fn get_json(agent: &ureq::Agent, url: &str) -> (u16, Value) {
552 let response = http_call_with_retry(&format!("GET {url}"), || agent.get(url).call());
553 response_to_json(response)
554}
555
556pub async fn wait_for_dashboard(agent: &ureq::Agent, base_url: &str) {
557 let probe = format!("{base_url}/api/capabilities");

Calls 3

http_call_with_retryFunction · 0.85
response_to_jsonFunction · 0.85
callMethod · 0.45