(options, callback)
| 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 = { |
nothing calls this directly
no test coverage detected