Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Application

import { Application } from "https://raw.githubusercontent.com/Caesar2011/denotrain/master/mod.ts";
class Application<S extends object = {
[key: string]: any;
}
, R extends object = {
[key: string]: any;
}
>
extends Router<S, R> {
constructor(options?: AppOptions);
public data: S;
public logger: Logger;
public options: AppParameters;
public servers: ListenOptions[];
 
private async runHook(ctx: Context<S, R>, lifecycle: LifecycleHook);
private async runServer(server: ListenOptions);
public async handleRequest(request: ServerRequest): Promise<Context>;
public async run();
}

§Type Parameters

§
S extends object = {
[key: string]: any;
}
[src]
§
R extends object = {
[key: string]: any;
}
[src]

§Extends

§
Router<S, R>
[src]

§Constructors

§
new Application(options?: AppOptions)
[src]

§Properties

§
data: S
[src]
§
options: AppParameters
[src]
§
servers: ListenOptions[]
[src]

§Methods

§
runHook(ctx: Context<S, R>, lifecycle: LifecycleHook) private
[src]
§
runServer(server: ListenOptions) private
[src]
§
handleRequest(request: ServerRequest): Promise<Context>
[src]
§
run()
[src]