Skip to main content
Deno 2 is finally here 🎉️
Learn more
Extremely Popular
Latest
function composeMiddlewares
import { composeMiddlewares } from "https://deno.land/x/fresh@1.7.3/src/server/compose.ts";

Identify which middlewares should be applied for a request, chain them and return a handler response

Parameters

middlewares: MiddlewareRoute[]
errorHandler: ErrorHandler
paramsAndRoute: (url: URL) => RouteResult
renderNotFound: UnknownRenderFunction
basePath: string