import * as cav from "https://deno.land/x/cav@0.0.14/stack.ts";
Functions
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. |
Interfaces
An http.Handler that routes requests to Rpcs or other Handlers. Stacks are
one of two fundamental building blocks of Cav server applications, the other
being Rpcs. If a matching handler or Rpc throws the special NO_MATCH error,
the stack continues looking for matching handlers to process the request into
a response. Stacks can capture path groups while routing the request; the
captured groups will become the basis for the ResolverArg's | |
A routing map used by the constructed Stack to find matching handlers to handle an incoming request. |
Type Aliases
Type alias that matches any Stack. Useful for type constraints. |