MCPcopy
hub / github.com/elysiajs/elysia / json

Function json

src/universal/types.ts:202–204  ·  view source on GitHub ↗
(data: any, init?: ResponseInit)

Source from the content-addressed store, hash-verified

200 return Response.error()
201 }
202 static json(data: any, init?: ResponseInit) {
203 return Response.json(data, init as any)
204 }
205 static redirect(url: string, status: ResponseRedirectStatus) {
206 return Response.redirect(url, status)
207 }

Callers

nothing calls this directly

Calls 1

jsonMethod · 0.65

Tested by

no test coverage detected