MCPcopy
hub / github.com/Innei/Shiro / json

Method json

src/lib/edge-function.server.ts:22–28  ·  view source on GitHub ↗
(data: any)

Source from the content-addressed store, hash-verified

20 }
21
22 json(data: any) {
23 const nextData = JSON.stringify(data)
24
25 this.#headers.set('Content-Type', 'application/json')
26
27 return new Response(nextData, this.makeResponseOptions())
28 }
29
30 send(data: any) {
31 // if (data instanceof Stream) {

Callers 15

sendMethod · 0.95
GETFunction · 0.95
GETFunction · 0.95
fetchJsonDataFunction · 0.80
SiteOwnerAvatarFunction · 0.80
AISummaryFunction · 0.80
XLogSummaryFunction · 0.80
fetchDataFunction · 0.80
fetchHitokotoFunction · 0.80
getCrossbellNoteDataMethod · 0.80
getJinRiShiCiOneFunction · 0.80

Calls 1

makeResponseOptionsMethod · 0.95

Tested by

no test coverage detected