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

Function post_json

tests/dashboard_api_test/lcm.rs:368–375  ·  view source on GitHub ↗
(agent: &ureq::Agent, url: &str, body: &Value)

Source from the content-addressed store, hash-verified

366}
367
368fn post_json(agent: &ureq::Agent, url: &str, body: &Value) -> (u16, Value) {
369 let response = agent
370 .post(url)
371 .content_type("application/json")
372 .send(body.to_string())
373 .expect("POST should succeed");
374 response_to_json(response)
375}
376
377#[test]
378fn lcm_payload_health_and_gc_routes_require_preview_then_apply() {

Calls 2

response_to_jsonFunction · 0.85
sendMethod · 0.80