Search
Preparing search index...
The search index is not available
@nestjs/core
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
MiddlewareModule
Class MiddlewareModule
Hierarchy
MiddlewareModule
Index
Properties
config
container
exception
Filters
Cache
http
Adapter
injector
resolver
router
Exception
Filter
router
Proxy
routes
Mapper
Methods
bind
Handler
create
Proxy
load
Configuration
register
register
Handler
register
Middleware
register
Middleware
Config
register
Route
Middleware
resolve
Middleware
Properties
Private
config
config
:
ApplicationConfig
Private
container
container
:
NestContainer
Private
Readonly
exception
Filters
Cache
exception
Filters
Cache
:
WeakMap
<
object
,
any
>
= new WeakMap()
Private
http
Adapter
http
Adapter
:
HttpServer
Private
injector
injector
:
Injector
Private
resolver
resolver
:
MiddlewareResolver
Private
router
Exception
Filter
router
Exception
Filter
:
RouterExceptionFilters
Private
Readonly
router
Proxy
router
Proxy
:
RouterProxy
= new RouterProxy()
Private
routes
Mapper
routes
Mapper
:
RoutesMapper
Methods
Private
bind
Handler
bind
Handler
(
wrapper
:
InstanceWrapper
<
NestMiddleware
>
, applicationRef
:
HttpServer
, method
:
RequestMethod
, path
:
string
, moduleRef
:
Module
, collection
:
Map
<
string
,
InstanceWrapper
>
)
:
Promise
<
void
>
Parameters
wrapper:
InstanceWrapper
<
NestMiddleware
>
applicationRef:
HttpServer
method:
RequestMethod
path:
string
moduleRef:
Module
collection:
Map
<
string
,
InstanceWrapper
>
Returns
Promise
<
void
>
Private
create
Proxy
create
Proxy<TRequest, TResponse>
(
instance
:
NestMiddleware
, contextId
?:
ContextId
)
:
Promise
<
(
req
:
TRequest
, res
:
TResponse
, next
:
(
)
=>
void
)
=>
void
>
Type parameters
TRequest =
unknown
TResponse =
unknown
Parameters
instance:
NestMiddleware
Default value
contextId:
ContextId
= STATIC_CONTEXT
Returns
Promise
<
(
req
:
TRequest
, res
:
TResponse
, next
:
(
)
=>
void
)
=>
void
>
load
Configuration
load
Configuration
(
middlewareContainer
:
MiddlewareContainer
, instance
:
NestModule
, moduleKey
:
string
)
:
Promise
<
void
>
Parameters
middlewareContainer:
MiddlewareContainer
instance:
NestModule
moduleKey:
string
Returns
Promise
<
void
>
register
register
(
middlewareContainer
:
MiddlewareContainer
, container
:
NestContainer
, config
:
ApplicationConfig
, injector
:
Injector
, httpAdapter
:
HttpServer
)
:
Promise
<
void
>
Parameters
middlewareContainer:
MiddlewareContainer
container:
NestContainer
config:
ApplicationConfig
injector:
Injector
httpAdapter:
HttpServer
Returns
Promise
<
void
>
Private
register
Handler
register
Handler
(
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
register
Middleware
register
Middleware
(
middlewareContainer
:
MiddlewareContainer
, applicationRef
:
any
)
:
Promise
<
void
>
Parameters
middlewareContainer:
MiddlewareContainer
applicationRef:
any
Returns
Promise
<
void
>
register
Middleware
Config
register
Middleware
Config
(
middlewareContainer
:
MiddlewareContainer
, config
:
MiddlewareConfiguration
, moduleKey
:
string
, applicationRef
:
any
)
:
Promise
<
void
>
Parameters
middlewareContainer:
MiddlewareContainer
config:
MiddlewareConfiguration
moduleKey:
string
applicationRef:
any
Returns
Promise
<
void
>
register
Route
Middleware
register
Route
Middleware
(
middlewareContainer
:
MiddlewareContainer
, routeInfo
:
RouteInfo
, config
:
MiddlewareConfiguration
, moduleKey
:
string
, applicationRef
:
any
)
:
Promise
<
void
>
Parameters
middlewareContainer:
MiddlewareContainer
routeInfo:
RouteInfo
config:
MiddlewareConfiguration
moduleKey:
string
applicationRef:
any
Returns
Promise
<
void
>
resolve
Middleware
resolve
Middleware
(
middlewareContainer
:
MiddlewareContainer
, modules
:
Map
<
string
,
Module
>
)
:
Promise
<
void
>
Parameters
middlewareContainer:
MiddlewareContainer
modules:
Map
<
string
,
Module
>
Returns
Promise
<
void
>
Globals
Middleware
Module
config
container
exception
Filters
Cache
http
Adapter
injector
resolver
router
Exception
Filter
router
Proxy
routes
Mapper
bind
Handler
create
Proxy
load
Configuration
register
register
Handler
register
Middleware
register
Middleware
Config
register
Route
Middleware
resolve
Middleware
Generated using
TypeDoc