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

Method send

jd_pk.js:747–757  ·  view source on GitHub ↗
(t, e = "GET")

Source from the content-addressed store, hash-verified

745 }
746
747 send(t, e = "GET") {
748 t = "string" == typeof t ? {
749 url: t
750 } : t;
751 let s = this.get;
752 return "POST" === e && (s = this.post), new Promise((e, i) => {
753 s.call(this, t, (t, s, r) => {
754 t ? i(t) : e(s)
755 })
756 })
757 }
758
759 get(t) {
760 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