Skip to main content
Deno 2 is finally here 🎉️
Learn more
Extremely Popular
Go to Latest
type alias rutt.UnknownMethodHandler
import { type rutt } from "https://deno.land/x/fresh@1.1.4/src/server/deps.ts";
const { UnknownMethodHandler } = rutt;

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

Type Parameters

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