( handler: (request: Request) => Promise<Response>, algorithm: Algorithm )
| 51 | } |
| 52 | |
| 53 | const get = ( |
| 54 | handler: (request: Request) => Promise<Response>, |
| 55 | algorithm: Algorithm |
| 56 | ) => handler(new Request("http://localhost/", { headers: { "accept-encoding": algorithm } })) |
| 57 | |
| 58 | // Bun's CompressionStream does not expose an explicit flush operation, so |
| 59 | // incremental SSE-style delivery is runtime-defined and intentionally is not |
no test coverage detected