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

Method send

jd_api_test.js:121–129  ·  view source on GitHub ↗
(t, e = "GET")

Source from the content-addressed store, hash-verified

119 }
120
121 send(t, e = "GET") {
122 t = "string" == typeof t ? {url: t} : t;
123 let s = this.get;
124 return "POST" === e && (s = this.post), new Promise((e, i) => {
125 s.call(this, t, (t, s, r) => {
126 t ? i(t) : e(s)
127 })
128 })
129 }
130
131 get(t) {
132 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