MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / postJson

Function postJson

openclaw-plugin/src/index.js:175–185  ·  view source on GitHub ↗
(url, body)

Source from the content-addressed store, hash-verified

173}
174
175async function postJson(url, body) {
176 try {
177 const resp = await fetch(url, {
178 method: "POST",
179 headers: { "content-type": "application/json" },
180 body: JSON.stringify(body),
181 signal: AbortSignal.timeout(5000),
182 });
183 return resp.ok ? await resp.json() : null;
184 } catch { return null; }
185}
186
187// ── Plugin ───────────────────────────────────────────────────────────
188

Callers 2

registerFunction · 0.85
applyLimitsFunction · 0.85

Calls 1

stringifyMethod · 0.80

Tested by

no test coverage detected