MCPcopy Create free account
hub / github.com/TomClive/SeeDance2Stitcher / json

Function json

server.js:64–72  ·  view source on GitHub ↗
(res, status, payload)

Source from the content-addressed store, hash-verified

62}
63
64function json(res, status, payload) {
65 const body = Buffer.from(JSON.stringify(payload));
66 res.writeHead(status, {
67 "Content-Type": "application/json",
68 "Content-Length": body.length,
69 "Cache-Control": "no-store"
70 });
71 res.end(body);
72}
73
74function text(res, status, body) {
75 res.writeHead(status, { "Content-Type": "text/plain; charset=utf-8" });

Callers 5

handleAnalyzeFunction · 0.85
handleFrameFunction · 0.85
handleExportFunction · 0.85
handleExportCollageFunction · 0.85
handleExportStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected