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
Go to Latest
type alias UnknownMethodHandler
import { type UnknownMethodHandler } from "https://deno.land/x/rutt@0.0.13/mod.ts";

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>