MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / httpJson

Function httpJson

scripts/integration/cli.mjs:1840–1843  ·  view source on GitHub ↗
(method, requestPath, body, options = {})

Source from the content-addressed store, hash-verified

1838}
1839
1840async function httpJson(method, requestPath, body, options = {}) {
1841 const buffer = await httpBuffer(method, requestPath, body, options);
1842 return JSON.parse(buffer.toString("utf8"));
1843}
1844
1845async function retryHttpJson(method, requestPath, body, label, options = {}) {
1846 const attempts = options.attempts ?? 3;

Callers 3

runRestControlsFunction · 0.70
waitForHealthFunction · 0.70
retryHttpJsonFunction · 0.70

Calls 3

httpBufferFunction · 0.85
toStringMethod · 0.80
parseMethod · 0.45

Tested by

no test coverage detected