Skip to main content
Module

x/keywork/router/interfaces/mod.ts>RouteRequestHandler

A library for building V8 Isolate web apps on Cloudflare Workers, Deno, and Node.JS
Go to Latest
interface RouteRequestHandler
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
BoundAliases = { }
optional
ExpectedParams = { }
optional
Data extends { } = Record<string, unknown>
optional
ExpectedReturn extends ResponseLike = ResponseLike