(chunk)
| 351 | } |
| 352 | |
| 353 | onResponseData (chunk) { |
| 354 | assert(!this.aborted) |
| 355 | assert(!this.completed) |
| 356 | |
| 357 | if (channels.bodyChunkReceived.hasSubscribers) { |
| 358 | channels.bodyChunkReceived.publish({ request: this, chunk }) |
| 359 | } |
| 360 | |
| 361 | const controller = this[kController] |
| 362 | try { |
| 363 | this[kHandler].onResponseData?.(controller, chunk) |
| 364 | return !controller?.paused |
| 365 | } catch (err) { |
| 366 | this.abort(err) |
| 367 | return false |
| 368 | } |
| 369 | } |
| 370 | |
| 371 | onRequestUpgrade (statusCode, headers, socket) { |
| 372 | assert(!this.aborted) |
nothing calls this directly
no test coverage detected