(where, status = 301, extraHeaders = {})
| 64 | } |
| 65 | |
| 66 | function redirect(where, status = 301, extraHeaders = {}) { |
| 67 | const headers = new Headers({ location: where, ...extraHeaders }); |
| 68 | const r = new Response('', { status, headers }); |
| 69 | return r; |
| 70 | } |
| 71 | |
| 72 | function error(err, status = 500, extraHeaders = {}) { |
| 73 | const headers = new Headers({ |
nothing calls this directly
no outgoing calls
no test coverage detected