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