Skip to main content
Module

x/rutt/mod.ts>defaultUnknownMethodHandler

🛣️ A tiny and fast http request router designed for use with deno and deno deploy
Go to Latest
function defaultUnknownMethodHandler
import { defaultUnknownMethodHandler } from "https://deno.land/x/rutt@0.0.13/mod.ts";

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[]