Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Extremely Popular
Go to Latest
type alias rutt.UnknownMethodHandler
import { type rutt } from "https://deno.land/x/fresh@1.1.3/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>