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

Routing system for Mith framework
Latest
method Mith.prototype.dispatch
import { Mith } from "https://deno.land/x/mith_router@v0.5.0/example/deps.ts";

Dispatch function will trigger the middleware in sequence based on the current stack

Parameters

request: IRequest

Deno Server Request Object

response: IResponse

Mith Server Response Object

stack: Stacks

indentifies the current middleware stack

optional
index: number = [UNSUPPORTED]

number

optional
next: NextFunction

function can be passed to cicle between Mith apps

optional
error: any

Returns

void

void