MCPcopy
hub / github.com/triggerdotdev/trigger.dev / json

Function json

apps/proxy/src/json.ts:1–13  ·  view source on GitHub ↗
(body: any, init?: ResponseInit)

Source from the content-addressed store, hash-verified

1export function json(body: any, init?: ResponseInit) {
2 const headers = {
3 "content-type": "application/json",
4 ...(init?.headers ?? {}),
5 };
6
7 const responseInit: ResponseInit = {
8 ...(init ?? {}),
9 headers,
10 };
11
12 return new Response(JSON.stringify(body), responseInit);
13}

Callers 15

applyRateLimitFunction · 0.90
queueEventsFunction · 0.90
queueEventFunction · 0.90
actionFunction · 0.85
POSTFunction · 0.85
actionFunction · 0.85
loaderFunction · 0.85
actionFunction · 0.85
loaderFunction · 0.85
actionFunction · 0.85
actionFunction · 0.85
actionFunction · 0.85

Calls

no outgoing calls

Tested by 1

actionFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…