| 1 | export const prerender = false; |
| 2 | |
| 3 | /** |
| 4 | * Binary (non-HTML, non-JSON) endpoint response: a fixed byte payload with an |
| 5 | * explicit content type, exercising binary bodies through workerd (dev) and |
| 6 | * the Worker (live). |
| 7 | */ |
| 8 | const BYTES = new Uint8Array([ |
| 9 | 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x01, 0x02, 0x03, |
| 10 | ]); |
| 11 | |
| 12 | export function GET() { |
| 13 | return new Response(BYTES, { |
| 14 | headers: { |
| 15 | "content-type": "application/octet-stream", |
| 16 | "x-binary-length": String(BYTES.length), |
| 17 | }, |
| 18 | }); |
| 19 | } |