Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mith_router/example/deps.ts>Mith#nextMiddleware

Routing system for Mith framework
Latest
method Mith.prototype.nextMiddleware
import { Mith } from "https://deno.land/x/mith_router@v0.5.0/example/deps.ts";

nextMiddleware function will trigger the next middleware in line In case an error is passed it moves to the error middleware stack

Parameters

request: IRequest

Deno Server Request Object

response: IResponse

Mith Server Response Object

stack: Stacks

indentifies the current middleware stack

index: number

number

optional
next: NextFunction

function can be passed to cicle between Mith apps

optional
error: any

received from a callback