MCPcopy Create free account
hub / github.com/6dylan6/jdpro / get

Method get

function/magic.js:635–642  ·  view source on GitHub ↗
(url, headers)

Source from the content-addressed store, hash-verified

633 }
634
635 async get(url, headers) {
636 url = this.appId ? this.build(url) : url
637 return new Promise((resolve, reject) => {
638 $.get(url, {headers: headers}).then(
639 data => resolve(this.handler(data) || data))
640 .catch(e => reject(e))
641 })
642 }
643
644 async post(url, body, headers) {
645 url = this.appId ? this.build(url) : url

Callers 15

getShopInfoMethod · 0.95
requestMethod · 0.45
getBodyFunction · 0.45
jsonpMethod · 0.45
jsonpMethod · 0.45
index_3.jsFile · 0.45
UcFunction · 0.45
esFunction · 0.45
index_2.jsFile · 0.45
K0Function · 0.45
JnFunction · 0.45
GrFunction · 0.45

Calls 2

buildMethod · 0.95
handlerMethod · 0.95

Tested by

no test coverage detected