MCPcopy Create free account
hub / github.com/NobyDa/Script / get

Function get

BDTieBa-DailyBonus/TieBa.js:272–285  ·  view source on GitHub ↗
(options, callback)

Source from the content-addressed store, hash-verified

270 return response
271 }
272 const get = (options, callback) => {
273 if (isQuanX) {
274 if (typeof options == "string") options = {
275 url: options
276 }
277 options["method"] = "GET"
278 $task.fetch(options).then(response => {
279 callback(null, adapterStatus(response), response.body)
280 }, reason => callback(reason.error, null, null))
281 }
282 if (isSurge) $httpClient.get(options, (error, response, body) => {
283 callback(error, adapterStatus(response), body)
284 })
285 }
286 const post = (options, callback) => {
287 if (isQuanX) {
288 if (typeof options == "string") options = {

Callers

nothing calls this directly

Calls 2

adapterStatusFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected