class Application
extends ApplicationEvents
import { Application } from "https://deno.land/x/lean@0.0.6/lib/app.ts";
Based on the work of abc https://github.com/zhmushan/abc/blob/master/app.ts
Constructors
new
Application(options: ApplicationOptions)Methods
add(): Application
method: string,
path: string,
requestHandler: RequestHandler<this>,
...middlewares: Middleware<this>[],
addResponseTransformer(responseTransformer: ResponseTransformer)
any(): Application
close(): Promise<void>
get(): Application
head(): Application
match(): Application
methods: string[],
path: string,
requestHandler: RequestHandler<this>,
...middleware: Middleware<this>[],
patch(): Application
post(): Application
put(): Application
start(listenOptions: Deno.ListenOptions): void
trace(): Application