(response)
| 13928 | constructor(dispatcher) { |
| 13929 | super(); |
| 13930 | this.dispatcher = dispatcher; |
| 13931 | this.connection = null; |
| 13932 | this.dump = false; |
| 13933 | this.state = "ongoing"; |
| 13934 | } |
| 13935 | terminate(reason) { |
| 13936 | var _a; |
| 13937 | if (this.state !== "ongoing") { |
| 13938 | return; |
| 13939 | } |
| 13940 | this.state = "terminated"; |
| 13941 | (_a = this.connection) == null ? void 0 : _a.destroy(reason); |
| 13942 | this.emit("terminated", reason); |
| 13943 | } |
| 13944 | // https://fetch.spec.whatwg.org/#fetch-controller-abort |
| 13945 | abort(error) { |
| 13946 | var _a; |
| 13947 | if (this.state !== "ongoing") { |
| 13948 | return; |
nothing calls this directly
no test coverage detected