Skip to main content
Module

x/cav/stack.ts>stack

A server framework for Deno
Go to Latest
function stack
import { stack } from "https://deno.land/x/cav@0.0.14/stack.ts";

Constructs a StackHandler using the given StackRoutes object. The first matching handler in the provided routes to either return a Response or throw an unknown error halts the matching process. If a handler throws the special NO_MATCH error, the error is suppressed and matching continues. See the documentation for more details about StackRoutes and how routing inside a Stack works.

TODO: the referenced documentation lol

Parameters

routes: R