(path, status, statusText, headers, start, end, _contentLength)
| 7 | /** @internal */ |
| 8 | export const make = Platform.make({ |
| 9 | fileResponse(path, status, statusText, headers, start, end, _contentLength) { |
| 10 | let file = Bun.file(path) |
| 11 | if (start > 0 || end !== undefined) { |
| 12 | file = file.slice(start, end) |
| 13 | } |
| 14 | return ServerResponse.raw(file, { headers, status, statusText }) |
| 15 | }, |
| 16 | fileWebResponse(file, status, statusText, headers, _options) { |
| 17 | return ServerResponse.raw(file, { headers, status, statusText }) |
| 18 | } |