Limit the middleware to the module where this middleware is defined.
Returns void
name
name(name: string): void
Parameters
name: string
Returns void
order
order(order: number): void
Per default middlewares are executed in the order they were registered. The default order is 0. A lower order means the middleware is executed earlier.
Parameters
order: number
Returns void
timeout
timeout(timeout: number): void
When the middleware does not respond (either calling next() or sending headers) withing milliseconds,
automatically the next is executed and warning printed.
Limit the middleware to the module where this middleware is defined.