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

x/mith/application.ts>Mith#dispatch

A middleware framework for Deno's http/s server.
Latest
method Mith.prototype.dispatch
import { Mith } from "https://deno.land/x/mith@v0.9.6/application.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