Skip to main content
Module

x/ant/mod.ts>Application

Fast and simple Deno web server framework.
Go to Latest
class Application
import { Application } from "https://deno.land/x/ant@v0.1.1/mod.ts";

Constructors

new
Application()

Methods

private
getRoute(method: string, url: string): RouteData | undefined
connect<P = any, Q = any>(path: string, ...steps: CallBack<P, Q>[])
delete<P = any, Q = any>(path: string, ...steps: CallBack<P, Q>[])
error(...steps: ErrorCallBack[])
get<P = any, Q = any>(path: string, ...steps: CallBack<P, Q>[])
head<P = any, Q = any>(path: string, ...steps: CallBack<P, Q>[])
mount(path: string, router: Router)
options<P = any, Q = any>(path: string, ...steps: CallBack<P, Q>[])
patch<P = any, Q = any>(path: string, ...steps: CallBack<P, Q>[])
post<P = any, Q = any, B = any>(path: string, ...steps: CallBack<P, Q, B>[])
put<P = any, Q = any>(path: string, ...steps: CallBack<P, Q>[])
run(addr: string | HTTPOptions, cb?: () => void)
trace<P = any, Q = any>(path: string, ...steps: CallBack<P, Q>[])
use(...middleware: CallBack[])