(status: number, body: unknown)
| 47 | }); |
| 48 | |
| 49 | function jsonResponse(status: number, body: unknown): Response { |
| 50 | return new Response(JSON.stringify(body), { |
| 51 | status, |
| 52 | headers: { "content-type": "application/json" } |
| 53 | }); |
| 54 | } |
| 55 | |
| 56 | function textResponse(status: number, body: string): Response { |
| 57 | return new Response(body, { |