MCPcopy
hub / github.com/chavyleung/scripts / doneApi

Function doneApi

chavy.box.js:1198–1203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1196}
1197
1198function doneApi() {
1199 $.json = $.toStr($.json)
1200 const headers = getJsonDoneHeaders()
1201 if ($.isQuanX()) $.done({ status: 'HTTP/1.1 200', headers, body: $.json })
1202 else $.done({ response: { status: 200, headers, body: $.json } })
1203}
1204
1205/**
1206 * EnvJs

Callers 1

doneBoxFunction · 0.70

Calls 4

getJsonDoneHeadersFunction · 0.70
toStrMethod · 0.45
isQuanXMethod · 0.45
doneMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…