(reason)
| 115 | } |
| 116 | |
| 117 | terminate (reason) { |
| 118 | if (this.state !== 'ongoing') { |
| 119 | return |
| 120 | } |
| 121 | |
| 122 | this.state = 'terminated' |
| 123 | this.connection?.destroy(reason) |
| 124 | this.emit('terminated', reason) |
| 125 | } |
| 126 | |
| 127 | // https://fetch.spec.whatwg.org/#fetch-controller-abort |
| 128 | abort (error) { |
no test coverage detected