Page Contents
Home > @loopback/express > MiddlewareBindingOptions
MiddlewareBindingOptions interface
Options to bind middleware as a request context based interceptor within an InvokeMiddleware
action of the sequence.
Signature:
export interface MiddlewareBindingOptions extends BaseMiddlewareBindingOptions<MiddlewareContext>
Extends: BaseMiddlewareBindingOptions<MiddlewareContext>
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
chain? | string | (Optional) Name of the middleware extension point. Default to DEFAULT_MIDDLEWARE_CHAIN . |
|
downstreamGroups? | string | string[] | <p>(Optional) An array of group names for downstream middleware in the cascading order.</p><p>For example, the sendResponse depends on invokeMethod for response processing. The downstreamGroups for sendResponse should be ['invokeMethod'] . The order of groups in the array does not matter.</p> |
|
upstreamGroups? | string | string[] | <p>(Optional) An array of group names for upstream middleware in the cascading order.</p><p>For example, the invokeMethod depends on parseParams for request processing. The upstreamGroups for invokeMethod should be ['parseParams'] . The order of groups in the array does not matter.</p> |