(data: object, status = 200)
| 146 | }; |
| 147 | |
| 148 | function jsonResponse(data: object, status = 200): Response { |
| 149 | return new Response(JSON.stringify(data), { |
| 150 | status, |
| 151 | headers: { "Content-Type": "application/json", ...corsHeaders }, |
| 152 | }); |
| 153 | } |
| 154 | |
| 155 | function createDebugServer( |
| 156 | port: number, |