(data)
| 354 | } |
| 355 | |
| 356 | public end(data) { |
| 357 | if (this.isAborted) return; |
| 358 | |
| 359 | this.res.cork(() => { |
| 360 | if (!this.statusWritten) { |
| 361 | // status will be inferred as "200 OK" |
| 362 | this.writeBufferedHeaders(); |
| 363 | } |
| 364 | this.res.end(data); |
| 365 | }); |
| 366 | } |
| 367 | |
| 368 | public onData(fn) { |
| 369 | if (this.isAborted) return; |
no test coverage detected