Skip to main content
Module

x/rutt/mod.ts>MatchHandler

🛣️ A tiny and fast http request router designed for use with deno and deno deploy
Latest
type alias MatchHandler
import { type MatchHandler } from "https://deno.land/x/rutt@0.2.0/mod.ts";

A handler type for a router path match which gets passed the matched values

Type Parameters

optional
T = unknown
definition: (
req: Request,
match: Record<string, string>,
) => Response | Promise<Response>