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