(url, callback)
| 497 | |
| 498 | // 定义 post 方法,用于发送 POST 请求 |
| 499 | const post = (url, callback) => { |
| 500 | if (isLoon || isSurge) $httpClient.post(url, callback); |
| 501 | if (isQX) {url.method = `POST`; $task.fetch(url).then((resp) => callback(null, {}, resp.body))}; |
| 502 | }; |
| 503 | |
| 504 | // 定义 put 方法,用于发送 PUT 请求 |
| 505 | const put = (url, callback) => { |
nothing calls this directly
no test coverage detected
searching dependent graphs…