x/oak/middleware.ts

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
Very Popular
Latest
function compose
import { compose } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v17.1.3/middleware.ts?s=compose";

Compose multiple middleware functions into a single middleware function.

Type Parameters

optional
S extends State = Record<string, any>
[src]
optional
T extends Context = Context<S>
[src]

Returns

(context: T, next?: Next) => Promise<unknown>[src]