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

Method post

function/magic.js:644–651  ·  view source on GitHub ↗
(url, body, headers)

Source from the content-addressed store, hash-verified

642 }
643
644 async post(url, body, headers) {
645 url = this.appId ? this.build(url) : url
646 return new Promise((resolve, reject) => {
647 $.post(url, body, {headers: headers})
648 .then(data => resolve(this.handler(data) || data))
649 .catch(e => reject(e));
650 })
651 }
652
653 async request(url, headers, body) {
654 return new Promise((resolve, reject) => {

Callers 6

_algoMethod · 0.95
requestMethod · 0.45
requestAlgoMethod · 0.45
index_5.jsFile · 0.45
index_6.jsFile · 0.45
47.jsFile · 0.45

Calls 2

buildMethod · 0.95
handlerMethod · 0.95

Tested by

no test coverage detected