Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.3.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>