MCPcopy Index your code
hub / github.com/Moli-X/Resources / get

Function get

Script/Wechat.js:158–170  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

156}
157
158function get(options) {
159 if (isQuanX) {
160 if (typeof options == "string") options = { url: options, method: "GET" };
161 return $task.fetch(options);
162 } else {
163 return new Promise((resolve, reject) => {
164 $httpClient.get(options, (err, response, body) => {
165 if (err) reject(err);
166 else resolve({ statusCode: response.status, headers: response.headers, body });
167 });
168 });
169 }
170}
171
172function read(key) {
173 if (typeof $notify != "undefined") {

Callers 1

Wechat.jsFile · 0.70

Calls 2

fetchMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected