Module

x/fresh/src/server/deps.ts>rutt.RouterOptions

The next-gen web framework.
Extremely Popular
Go to Latest
interface rutt.RouterOptions
import { type rutt } from "https://dotland.deno.dev/x/fresh@1.1.5/src/server/deps.ts";
const { RouterOptions } = rutt;

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