(body: HttpServerResponse["body"])
| 640 | } |
| 641 | |
| 642 | const cancelResponseBody = (body: HttpServerResponse["body"]): Effect.Effect<void> => { |
| 643 | const stream = body._tag === "Raw" ? body.body : undefined |
| 644 | if (stream instanceof Readable) { |
| 645 | return Effect.sync(() => stream.destroy()) |
| 646 | } |
| 647 | return Effect.void |
| 648 | } |
| 649 | |
| 650 | const handleCause = ( |
| 651 | nodeResponse: Http.ServerResponse, |