Usage

import * as mod from "https://crux.land/api/get/2KNRVU.ts";

§Variables

METHODS

§Functions

defaultErrorHandler

The default error handler for the router

defaultOtherHandler

The default other handler for the router

defaultUnknownMethodHandler

The default unknown method handler for the router

router

A simple and tiny router for deno deploy

§Type Aliases

ErrorHandler

A handler type for anytime the MatchHandler or other parameter handler fails

MatchHandler

A handler type for a router path match which gets passed the matched values

RequestHandler

A deno deploy compatible request handler which can be either sync or async and gets passed the Request, it then eventually returns a Response

Routes

A record of route paths and MatchHandlers which are called when a match is found along with it's values.

UnknownMethodHandler

A handler type for anytime a method is received that is not defined