()
| 793 | } |
| 794 | |
| 795 | get stream(): Stream.Stream<Uint8Array, HttpServerError> { |
| 796 | const body = this.source.body |
| 797 | switch (body._tag) { |
| 798 | case "Empty": { |
| 799 | return Stream.empty |
| 800 | } |
| 801 | case "Uint8Array": { |
| 802 | return Stream.succeed(body.body) |
| 803 | } |
| 804 | case "Stream": { |
| 805 | return Stream.mapError(body.stream, (cause) => requestParseError(this, undefined, cause)) |
| 806 | } |
| 807 | case "FormData": { |
| 808 | return streamFromReadable(this, new Response(body.formData).body) |
| 809 | } |
| 810 | case "Raw": { |
| 811 | return rawBodyStream(this, body.body) |
| 812 | } |
| 813 | } |
| 814 | } |
| 815 | |
| 816 | private bytesEffect: Effect.Effect<Uint8Array, HttpServerError> | undefined |
| 817 | private get bytes(): Effect.Effect<Uint8Array, HttpServerError> { |
nothing calls this directly
no test coverage detected