(input: string | URL | Request, init?: RequestInit)
| 74 | ).handler |
| 75 | return { |
| 76 | request(input: string | URL | Request, init?: RequestInit) { |
| 77 | return Effect.promise(() => |
| 78 | Promise.resolve( |
| 79 | handler( |
| 80 | input instanceof Request ? input : new Request(new URL(input, "http://localhost"), init), |
| 81 | HttpApiApp.context, |
| 82 | ), |
| 83 | ), |
| 84 | ) |
| 85 | }, |
| 86 | } |
| 87 | } |
| 88 |