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

x/mith/application.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/application.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