import { Application } from "https://deno.land/x/oak_nest@v3.0.1/mod.ts";
Constructors
new
Application(router: IRouter)Properties
private
abortController: AbortControllerprivate
apiPrefixOptions: ApiPrefixOptionsprivate
controllers: Type<any>[]private
globalExceptionFilters: ExceptionFiltersprivate
globalGuards: NestGuardsprivate
globalInterceptors: NestUseInterceptorsprivate
staticOptions: StaticOptionsMethods
private
beforeApplicationShutdown(signal?: string): Promise<void>private
catchError(context: Context, error: any)private
catchFilter()private
formatResponse(context: Context, options: { target: InstanceType<Constructor>; args: any[]; methodName: string; methodType: string; fn: ControllerMethod; })private
initController(Cls: Type)private
initModule(module: ModuleType)private
initProviders(providers: Provider[])private
log(...message: string[])private
onApplicationBootstrap(): Promise<void>TODO: think about whether to use Promise.all or a for loop
private
onApplicationShutdown(signal?: string): Promise<void>TODO: think about whether to use Promise.all or a for loop
private
onModuleDestroy(): Promise<void>private
validateGuard(): Promise<boolean>protected
routes()enableShutdownHooks(signals?: ShutdownSignal[]): this
Enables the usage of shutdown hooks. Will call the
onApplicationShutdown
function of a provider if the
process receives a shutdown signal.
get(path: string, middleware: NestMiddleware)
init(appModule: ModuleType, cache: Map<any, any>)
listen(options?: ListenOptions): Promise<void>
setGlobalPrefix(apiPrefix: string, options?: ApiPrefixOptions)
use(...middlewares: NestMiddleware[]): void
useGlobalFilters(...filters: ExceptionFilters)
useGlobalGuards(...guards: NestGuards)
useGlobalInterceptors(...interceptors: NestUseInterceptors)
useLogger(logger: LoggerService): void
Sets custom logger service. Flushes buffered logs if auto flush is on.