Skip to main content
Extremely Popular
Latest
function composeMiddlewares
import { composeMiddlewares } from "https://deno.land/x/fresh@1.6.8/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