UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

45 lines (30 loc) 1.99 kB
--- lang: en title: 'API docs: context.genericinterceptorchain' keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI sidebar: lb4_sidebar editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/context permalink: /doc/en/lb4/apidocs.context.genericinterceptorchain.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/context](./context.md) &gt; [GenericInterceptorChain](./context.genericinterceptorchain.md) ## GenericInterceptorChain class A chain of generic interceptors to be invoked for the given context <b>Signature:</b> ```typescript export declare class GenericInterceptorChain<C extends Context = Context> ``` ## Constructors | Constructor | Modifiers | Description | | --- | --- | --- | | [(constructor)(context, interceptors)](./context.genericinterceptorchain._constructor_.md) | | Create an invocation chain with a list of interceptor functions or binding keys | | [(constructor)(context, filter, comparator)](./context.genericinterceptorchain._constructor__1.md) | | Create an invocation interceptor chain with a binding filter and comparator. The interceptors are discovered from the context using the binding filter and sorted by the comparator (if provided). | ## Properties | Property | Modifiers | Type | Description | | --- | --- | --- | --- | | [getInterceptors](./context.genericinterceptorchain.getinterceptors.md) | | () =&gt; [GenericInterceptorOrKey](./context.genericinterceptororkey.md)<!-- -->&lt;C&gt;\[\] | A getter for an array of interceptor functions or binding keys | ## Methods | Method | Modifiers | Description | | --- | --- | --- | | [asInterceptor()](./context.genericinterceptorchain.asinterceptor.md) | | Use the interceptor chain as an interceptor | | [invokeInterceptors(finalHandler)](./context.genericinterceptorchain.invokeinterceptors.md) | | Invoke the interceptor chain |