Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MiddlewareModule

Hierarchy

  • MiddlewareModule

Index

Properties

Private config

Private container

container: NestContainer

Private Readonly exceptionFiltersCache

exceptionFiltersCache: WeakMap<object, any> = new WeakMap()

Private httpAdapter

httpAdapter: HttpServer

Private injector

injector: Injector

Private resolver

Private routerExceptionFilter

routerExceptionFilter: RouterExceptionFilters

Private Readonly routerProxy

routerProxy: RouterProxy = new RouterProxy()

Private routesMapper

routesMapper: RoutesMapper

Methods

Private bindHandler

Private createProxy

  • createProxy<TRequest, TResponse>(instance: NestMiddleware, contextId?: ContextId): Promise<(req: TRequest, res: TResponse, next: () => void) => void>

loadConfiguration

  • loadConfiguration(middlewareContainer: MiddlewareContainer, instance: NestModule, moduleKey: string): Promise<void>

register

Private registerHandler

  • registerHandler(router: (...args: any[]) => void, path: string, proxy: <TRequest, TResponse>(req: TRequest, res: TResponse, next: () => void) => void): void
  • Parameters

    • router: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    • path: string
    • proxy: <TRequest, TResponse>(req: TRequest, res: TResponse, next: () => void) => void
        • <TRequest, TResponse>(req: TRequest, res: TResponse, next: () => void): void
        • Type parameters

          • TRequest

          • TResponse

          Parameters

          • req: TRequest
          • res: TResponse
          • next: () => void
              • (): void
              • Returns void

          Returns void

    Returns void

registerMiddleware

  • registerMiddleware(middlewareContainer: MiddlewareContainer, applicationRef: any): Promise<void>

registerMiddlewareConfig

  • registerMiddlewareConfig(middlewareContainer: MiddlewareContainer, config: MiddlewareConfiguration, moduleKey: string, applicationRef: any): Promise<void>

registerRouteMiddleware

  • registerRouteMiddleware(middlewareContainer: MiddlewareContainer, routeInfo: RouteInfo, config: MiddlewareConfiguration, moduleKey: string, applicationRef: any): Promise<void>

resolveMiddleware

Generated using TypeDoc