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

Function json

packages/core/test-servers/src/worker.ts:32–36  ·  view source on GitHub ↗
(body: unknown, init?: ResponseInit)

Source from the content-addressed store, hash-verified

30const issuedAccessTokens = new Set<string>();
31
32const json = (body: unknown, init?: ResponseInit) =>
33 new Response(JSON.stringify(body), {
34 ...init,
35 headers: { "content-type": "application/json", ...init?.headers },
36 });
37
38const text = (body: string, init?: ResponseInit) =>
39 new Response(body, {

Callers 10

unauthorizedFunction · 0.70
oauthMetadataFunction · 0.70
handleRegisterFunction · 0.70
handleAuthorizeFunction · 0.70
handleLoginFunction · 0.70
handleTokenFunction · 0.70
openApiSpecFunction · 0.70
handleOpenApiFunction · 0.70
handleRequestFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected