(input, init)
| 58 | const app: ServerApp = { |
| 59 | fetch: (request: Request) => handler(request, HttpApiApp.context), |
| 60 | request(input, init) { |
| 61 | return app.fetch(input instanceof Request ? input : new Request(new URL(input, "http://localhost"), init)) |
| 62 | }, |
| 63 | } |
| 64 | return { app } |
| 65 | }) |