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

Function get

zsfc/zsfc.js:932–935  ·  view source on GitHub ↗
(url, callback)

Source from the content-addressed store, hash-verified

930
931 // 定义 get 方法,用于发送 GET 请求
932 const get = (url, callback) => {
933 if (isLoon || isSurge) $httpClient.get(url, callback);
934 if (isQX) {url.method = `GET`; $task.fetch(url).then((resp) => callback(null, {}, resp.body))};
935 };
936
937 // 定义 post 方法,用于发送 POST 请求
938 const post = (url, callback) => {

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected