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](/doc/en/lb4/apidocs.context.context.html) | |
| invokeMiddleware | InvokeMiddleware | invoker for registered middleware in a chain. To be injected via RestBindings.INVOKE\_MIDDLEWARE\_SERVICE. |
| options | InvokeMiddlewareOptions | _(Optional)_ |