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

Method send

lib.commonjs/utils/fetch.js:509–513  ·  view source on GitHub ↗

* Resolves to the response by sending the request.

()

Source from the content-addressed store, hash-verified

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

Callers 2

fetchMethod · 0.95
ccipReadFetchMethod · 0.95

Calls 2

#sendMethod · 0.95
getTimeFunction · 0.70

Tested by

no test coverage detected