import { type Router } from "https://deno.land/x/keywork@v6.0.1/mod.ts";
const { RouteRequestHandler } = Router;
A function or method that handles incoming requests and replies with a Response
.
Generally, this is interface is assigned to a KeyworkRouter method, such as onRequestGet
The IsomorphicFetchEvent
argument is provided by the router's fetch
method.
Call Signatures
(event: IsomorphicFetchEvent<BoundAliases, ExpectedParams, Data>, next: MiddlewareFetch<BoundAliases, MiddlewareReturnTypes>): Promise<ExpectedReturn> | ExpectedReturn