MCPcopy Create free account
hub / github.com/Semporia/Scripts / send

Method send

jd_redPacket.js:1574–1582  ·  view source on GitHub ↗
(t, e = "GET")

Source from the content-addressed store, hash-verified

1572 }
1573
1574 send(t, e = "GET") {
1575 t = "string" == typeof t ? {url: t} : t;
1576 let s = this.get;
1577 return "POST" === e && (s = this.post), new Promise((e, i) => {
1578 s.call(this, t, (t, s, r) => {
1579 t ? i(t) : e(s)
1580 })
1581 })
1582 }
1583
1584 get(t) {
1585 return this.send.call(this.env, t)

Callers

nothing calls this directly

Calls 2

iFunction · 0.70
eFunction · 0.70

Tested by

no test coverage detected