MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / sendJson

Function sendJson

packages/core/sdk/src/oauth-discovery.test.ts:32–33  ·  view source on GitHub ↗
(body: unknown, status = 200)

Source from the content-addressed store, hash-verified

30const decodeDcrRequestBody = Schema.decodeUnknownSync(Schema.fromJsonString(DcrRequestBody));
31
32const sendJson = (body: unknown, status = 200): HttpServerResponse.HttpServerResponse =>
33 HttpServerResponse.jsonUnsafe(body, { status });
34
35const notFound = (): HttpServerResponse.HttpServerResponse =>
36 HttpServerResponse.empty({ status: 404 });

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected