Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rutt/mod.ts>defaultUnknownMethodHandler

🛣️ A tiny and fast http request router designed for use with deno and deno deploy
Latest
function defaultUnknownMethodHandler
import { defaultUnknownMethodHandler } from "https://deno.land/x/rutt@0.3.0/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: KnownMethod[]