Skip to main content
Module

x/mith/mod.ts>Mith#nextMiddleware

A middleware framework for Deno's http/s server.
Latest
method Mith.prototype.nextMiddleware
import { Mith } from "https://deno.land/x/mith@v0.9.6/mod.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