Skip to main content
Module

x/mith/mod.ts>Mith#stackSendOrNext

A middleware framework for Deno's http/s server.
Latest
method Mith.prototype.stackSendOrNext
import { Mith } from "https://deno.land/x/mith@v0.9.6/mod.ts";

Calls sendResponse in case Mith server is already setup Calls the next function in case this is a sub application Stops execution otherwise

Parameters

Deno Server Request Object

Mith Server Response Object

stack: Stacks

on going middleware stack

optional
next: NextFunction

function can be passed to cicle between Mith apps

optional
error: any

in case of error, use it has the response body