Skip to main content
Module

x/rutt/mod.ts>RouterOptions

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

Additional options for the router function.

Properties

optional
otherHandler: Handler<T>

An optional property which contains a handler for anything that doesn't match the routes parameter

optional
errorHandler: ErrorHandler<T>

An optional property which contains a handler for any time it fails to run the default request handling code

optional
unknownMethodHandler: UnknownMethodHandler<T>

An optional property which contains a handler for any time a method that is not defined is used