MCPcopy Create free account
hub / github.com/PageLeay/celestial-runtime / send

Method send

lib.esm/utils/fetch.js:505–509  ·  view source on GitHub ↗

* Resolves to the response by sending the request.

()

Source from the content-addressed store, hash-verified

503 * Resolves to the response by sending the request.
504 */
505 send() {
506 assert(this.#signal == null, "request already sent", "UNSUPPORTED_OPERATION", { operation: "fetchRequest.send" });
507 this.#signal = new FetchCancelSignal(this);
508 return this.#send(0, getTime() + this.timeout, 0, this, new FetchResponse(0, "", {}, null, this));
509 }
510 /**
511 * Cancels the inflight response, causing a ``CANCELLED``
512 * error to be rejected from the [[send]].

Callers 2

fetchMethod · 0.95
ccipReadFetchMethod · 0.95

Calls 3

#sendMethod · 0.95
assertFunction · 0.90
getTimeFunction · 0.70

Tested by

no test coverage detected