Extremely Popular
Go to Latest
function rutt.defaultUnknownMethodHandler
import { rutt } from "https://dotland.deno.dev/x/fresh@1.1.5/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: KnownMethod[]