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

x/mith/example/deps.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/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: Request

Deno Server Request Object

response: Response

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