(path, status, statusText, headers, start, end, _contentLength)
| 37 | platform: "bun", |
| 38 | compression, |
| 39 | fileResponse(path, status, statusText, headers, start, end, _contentLength) { |
| 40 | let file = Bun.file(path) |
| 41 | if (start > 0 || end !== undefined) { |
| 42 | file = file.slice(start, end) |
| 43 | } |
| 44 | return Response.raw(file, { headers, status, statusText }) |
| 45 | }, |
| 46 | fileWebResponse(file, status, statusText, headers, options) { |
| 47 | const start = Number(options?.offset ?? 0) |
| 48 | const end = options?.bytesToRead !== undefined ? start + Number(options.bytesToRead) : undefined |