Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface INestApplication

Interface defining the core NestApplication object.

publicapi

Hierarchy

Index

Methods

close

  • close(): Promise<void>

connectMicroservice

enableCors

enableShutdownHooks

get

  • get<TInput, TResult>(typeOrToken: Type<TInput> | Abstract<TInput> | string | symbol, options?: { strict: boolean }): TResult

getHttpAdapter

getHttpServer

  • getHttpServer(): any

getMicroservices

getUrl

  • getUrl(): Promise<string>

init

  • init(): Promise<this>

listen

  • listen(port: number | string, callback?: () => void): Promise<any>
  • listen(port: number | string, hostname: string, callback?: () => void): Promise<any>

listenAsync

  • listenAsync(port: number | string, hostname?: string): Promise<any>

registerRequestByContextId

  • registerRequestByContextId<T>(request: T, contextId: { id: number }): void

resolve

  • resolve<TInput, TResult>(typeOrToken: Type<TInput> | Abstract<TInput> | string | symbol, contextId?: { id: number }, options?: { strict: boolean }): Promise<TResult>

select

setGlobalPrefix

  • setGlobalPrefix(prefix: string): this

startAllMicroservices

  • startAllMicroservices(callback?: () => void): this

startAllMicroservicesAsync

  • startAllMicroservicesAsync(): Promise<void>

use

  • use(...args: any[]): this

useGlobalFilters

useGlobalGuards

useGlobalInterceptors

useGlobalPipes

useLogger

useWebSocketAdapter

Generated using TypeDoc