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

Function writeJson

apps/cloud/src/auth/workos.node.test.ts:116–119  ·  view source on GitHub ↗
(response: ServerResponse, status: number, body: unknown)

Source from the content-addressed store, hash-verified

114};
115
116const writeJson = (response: ServerResponse, status: number, body: unknown): void => {
117 response.writeHead(status, { "content-type": "application/json" });
118 response.end(JSON.stringify(body));
119};
120
121const withWorkOSStub = async <A>(
122 keypair: Keypair,

Callers 1

withWorkOSStubFunction · 0.70

Calls 1

endMethod · 0.80

Tested by

no test coverage detected