( response: Response.HttpServerResponse, evaluate: () => ReadableStream<Uint8Array>, contentType: string | undefined )
| 99 | }) |
| 100 | |
| 101 | const streamBody = ( |
| 102 | response: Response.HttpServerResponse, |
| 103 | evaluate: () => ReadableStream<Uint8Array>, |
| 104 | contentType: string | undefined |
| 105 | ): Response.HttpServerResponse => |
| 106 | setBodyWithoutLength( |
| 107 | response, |
| 108 | HttpBody.stream(Stream.fromReadableStream({ evaluate, onError: identity }), contentType) |
| 109 | ) |
| 110 | |
| 111 | const singleChunkStream = (data: Uint8Array): ReadableStream<Uint8Array> => |
| 112 | new ReadableStream({ |
no test coverage detected