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

Function post

zsfc/zsfc.treasure.js:499–502  ·  view source on GitHub ↗
(url, callback)

Source from the content-addressed store, hash-verified

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) => {

Callers

nothing calls this directly

Calls 1

postMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…