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

Function post_json

tests/dashboard_api_test/dashboard_api_support.rs:437–442  ·  view source on GitHub ↗
(agent: &ureq::Agent, url: &str)

Source from the content-addressed store, hash-verified

435}
436
437pub(crate) fn post_json(agent: &ureq::Agent, url: &str) -> (u16, Value) {
438 let response = crate::common::http_call_with_retry(&format!("POST {url}"), || {
439 agent.post(url).send_empty()
440 });
441 response_to_json(response)
442}
443
444pub(crate) fn post_json_body(agent: &ureq::Agent, url: &str, body: &Value) -> (u16, Value) {
445 let response = crate::common::http_call_with_retry(&format!("POST {url} (with body)"), || {

Calls 2

http_call_with_retryFunction · 0.85
response_to_jsonFunction · 0.85