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

x/oak_http_proxy/test/deps.ts>Oak.composeMiddleware

Proxy middleware for Deno Oak HTTP servers. 🐿 🦕
Latest
function Oak.composeMiddleware
import { Oak } from "https://deno.land/x/oak_http_proxy@2.3.0/test/deps.ts";
const { composeMiddleware } = Oak;

Compose multiple middleware functions into a single middleware function.

Type Parameters

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

Returns

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