import { type RouteRequestHandler } from "https://deno.land/x/keywork@v6.0.1/router/interfaces/mod.ts";
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.
Type Parameters
optional
ExpectedReturn extends ResponseLike = ResponseLikeCall Signatures
(event: IsomorphicFetchEvent<BoundAliases, ExpectedParams, Data>, next: MiddlewareFetch<BoundAliases, MiddlewareReturnTypes>): Promise<ExpectedReturn> | ExpectedReturn