* Resolves to the response by sending the request.
()
| 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]]. |
no test coverage detected