MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / jsonRequest

Function jsonRequest

services/cloud-agent-next/test/unit/wrapper/server.test.ts:74–80  ·  view source on GitHub ↗
(body: unknown)

Source from the content-addressed store, hash-verified

72}
73
74function jsonRequest(body: unknown): Request {
75 return new Request('http://localhost/job/endpoint', {
76 method: 'POST',
77 headers: { 'Content-Type': 'application/json' },
78 body: JSON.stringify(body),
79 });
80}
81
82async function readJson(response: Response): Promise<unknown> {
83 return response.json();

Callers 1

server.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected