import { type Fetcher } from "https://deno.land/x/keywork@v6.2.1/router/mod.ts";
Cloudflare Usage
Events are handled by defining and exporting an object with method handlers that correspond to event names:
export default {
fetch(request, env, context) {
return new Response('Hello')
},
}
In this setup, all incoming requests are classified as 'fetch'
events.
The fetch handler receives the Request and replies with a Response.
Properties
fetch: MiddlewareFetch<BoundAliases>