Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rutt/mod.ts>UnknownMethodHandler

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

A handler type for anytime a method is received that is not defined

Type Parameters

optional
T = unknown
definition: (
req: Request,
knownMethods: KnownMethod[],
) => Response | Promise<Response>