Skip to main content
The Deno 2 Release Candidate is here
Learn more
Extremely Popular
Go to Latest
function composeMiddlewares
import { composeMiddlewares } from "https://deno.land/x/fresh@1.6.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