Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MiddlewareModule

Hierarchy

  • MiddlewareModule

Index

Properties

Private config

Private container

container: NestContainer

Private injector

injector: Injector

Private resolver

Private routerExceptionFilter

routerExceptionFilter: RouterExceptionFilters

Private routerProxy

routerProxy: RouterProxy = new RouterProxy()

Private routesMapper

routesMapper: RoutesMapper

Methods

Private bindHandler

Private createProxy

loadConfiguration

register

Private registerHandler

  • registerHandler(router: function, path: string, proxy: function): void
  • Parameters

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

          • Rest ...args: any[]

          Returns void

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

          • TRequest

          • TResponse

          Parameters

          • req: TRequest
          • res: TResponse
          • next: function
              • (): void
              • Returns void

          Returns void

    Returns void

registerMiddleware

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

registerMiddlewareConfig

registerRouteMiddleware

resolveMiddleware

  • resolveMiddleware(middlewareContainer: MiddlewareContainer, modules: Map<string, Module>): Promise<void>

Generated using TypeDoc