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