MCPcopy Create free account
hub / github.com/chavyleung/scripts / doneApi

Function doneApi

chavy.box.js:1257–1262  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1255}
1256
1257function doneApi() {
1258 $.json = $.toStr($.json)
1259 const headers = getJsonDoneHeaders()
1260 if ($.isQuanX()) $.done({ status: 'HTTP/1.1 200', headers, body: $.json })
1261 else $.done({ response: { status: 200, headers, body: $.json } })
1262}
1263
1264/**
1265 * 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