Skip to main content
Module

x/http_fns/cascade.ts>cascade

A bunch of functions for building HTTP servers
Go to Latest
function cascade
import { cascade } from "https://deno.land/x/http_fns@v0.0.27/cascade.ts";

Create a Request handler that calls a list of handlers in turn until one returns a Response.

Type Parameters

A extends unknown[]

Parameters

...handlers: Array<(request: Request, ...args: A) => Awaitable<Response | null>>

the array of handler functions to be called