Skip to main content
Module

x/rutt/mod.ts>UnknownMethodHandler

🛣️ A tiny and fast http request router designed for use with deno and deno deploy
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>