MCPcopy
hub / github.com/7836246/cursor2api / json

Method json

test/unit-openai-log-summary.mjs:67–70  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

65 this.ended = true;
66 }
67 json(obj) {
68 this.writeHead(this.statusCode, { 'Content-Type': 'application/json' });
69 this.end(JSON.stringify(obj));
70 }
71 status(code) {
72 this.statusCode = code;
73 return this;

Callers 15

initFunction · 0.45
updStatsFunction · 0.45
selReqFunction · 0.45
apiFetchFunction · 0.45
saveConfigFunction · 0.45
sendSingleTurnFunction · 0.45
runMultiTurnFunction · 0.45
runMultiTurnFunction · 0.45
chatFunction · 0.45
runTestsFunction · 0.45
chatFunction · 0.45
e2e-chat.mjsFile · 0.45

Calls 2

writeHeadMethod · 0.95
endMethod · 0.95

Tested by

no test coverage detected