Page Contents
Home > @loopback/rest > MiddlewareSequence > (constructor)
MiddlewareSequence.(constructor)
Constructor: Injects InvokeMiddleware
and InvokeMiddlewareOptions
Signature:
constructor(context: Context, invokeMiddleware: InvokeMiddleware, options?: InvokeMiddlewareOptions);
Parameters
Parameter | Type | Description |
---|---|---|
context | Context | |
invokeMiddleware | InvokeMiddleware | invoker for registered middleware in a chain. To be injected via RestBindings.INVOKE_MIDDLEWARE_SERVICE. |
options | InvokeMiddlewareOptions | (Optional) |