(data: string, init: ResponseInit = {})
| 32 | } |
| 33 | |
| 34 | function textResponse(data: string, init: ResponseInit = {}): Response { |
| 35 | return new Response(data, { |
| 36 | status: 200, |
| 37 | headers: { 'Content-Type': 'text/html' }, |
| 38 | ...init, |
| 39 | }); |
| 40 | } |
| 41 | |
| 42 | function missingResponse(): Response { |
| 43 | return new Response('', { status: 404, statusText: 'Missing' }); |
no outgoing calls
no test coverage detected