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

The default unknown method handler for the router. By default it responds with null body, a status of 405 and the Accept header set to all known methods.

Parameters

_req: Request
knownMethods: string[]