(text: string, status: number, headers?: Record<string, string>)
| 679 | } |
| 680 | |
| 681 | function textResponse(text: string, status: number, headers?: Record<string, string>): Response { |
| 682 | return withCors( |
| 683 | new Response(text, { |
| 684 | headers, |
| 685 | status, |
| 686 | }), |
| 687 | ) |
| 688 | } |
| 689 | |
| 690 | function withCors(response: Response): Response { |
| 691 | const headers = new Headers(response.headers) |
no test coverage detected