(request: HttpServerRequest, body: unknown)
| 937 | } |
| 938 | |
| 939 | const rawBodyStream = (request: HttpServerRequest, body: unknown): Stream.Stream<Uint8Array, HttpServerError> => { |
| 940 | if (body instanceof Request) { |
| 941 | return streamFromReadable(request, body.body) |
| 942 | } |
| 943 | if (isReadableStream(body)) { |
| 944 | return streamFromReadable(request, body) |
| 945 | } |
| 946 | if (isBodyInit(body)) { |
| 947 | return streamFromReadable(request, new Response(body).body) |
| 948 | } |
| 949 | return Stream.fail(requestParseError(request, "Unsupported body type")) |
| 950 | } |
| 951 | |
| 952 | const rawBodyBytes = ( |
| 953 | request: HttpServerRequest, |
no test coverage detected