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

x/cav/router.ts

A server framework for Deno
Go to Latest
import * as cav from "https://deno.land/x/cav@0.2.3/router.ts";

Functions

Checks if the Response is a "did match" Response, i.e. the handler it came from wants this Response to be returned to the client.

Adds a Symbol to the Response to indicate to any containing Routers that the handler didn't match with the Request. The Router will continue looking for matches.

Constructs a new Router handler using the provided routes. The route properties are also available on the returned Router function.

Type Aliases

Cav Router handlers, for routing requests.