| 153 | platform: "web", |
| 154 | compression: internal.compressionWeb, |
| 155 | fileResponse(path, status, statusText, headers, start, end, contentLength) { |
| 156 | return Response.stream( |
| 157 | fs.stream(path, { |
| 158 | offset: start, |
| 159 | bytesToRead: end !== undefined ? end - start : undefined |
| 160 | }), |
| 161 | { contentLength, headers, status, statusText } |
| 162 | ) |
| 163 | }, |
| 164 | fileWebResponse(file, status, statusText, headers, options) { |
| 165 | const offset = Number(options?.offset ?? 0) |
| 166 | const bytesToRead = options?.bytesToRead !== undefined ? Number(options.bytesToRead) : undefined |