MCPcopy
hub / github.com/MiniMax-AI/cli / jsonResponse

Function jsonResponse

test/helpers/mock-server.ts:49–54  ·  view source on GitHub ↗
(data: unknown, status = 200)

Source from the content-addressed store, hash-verified

47}
48
49export function jsonResponse(data: unknown, status = 200): Response {
50 return new Response(JSON.stringify(data), {
51 status,
52 headers: { 'Content-Type': 'application/json' },
53 });
54}
55
56export function sseResponse(events: Array<{ data: string }>): Response {
57 const body = events

Callers 15

http.test.tsFile · 0.90
query.test.tsFile · 0.90
voices.test.tsFile · 0.90
delete.test.tsFile · 0.90
list.test.tsFile · 0.90
task-get.test.tsFile · 0.90
chat.test.tsFile · 0.90
vision.test.tsFile · 0.90
video.test.tsFile · 0.90
text.test.tsFile · 0.90
music.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected