(body: string, init?: ResponseInit)
| 36 | }); |
| 37 | |
| 38 | const text = (body: string, init?: ResponseInit) => |
| 39 | new Response(body, { |
| 40 | ...init, |
| 41 | headers: { "content-type": "text/plain; charset=utf-8", ...init?.headers }, |
| 42 | }); |
| 43 | |
| 44 | const redirect = (location: string) => new Response(null, { status: 302, headers: { location } }); |
| 45 |
no outgoing calls
no test coverage detected