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#stackSendOrNext

Routing system for Mith framework
Latest
method Mith.prototype.stackSendOrNext
import { Mith } from "https://deno.land/x/mith_router@v0.5.0/example/deps.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

req: IRequest

Deno Server Request Object

res: IResponse

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