MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / constructor

Method constructor

packages/express/src/middleware.ts:239–250  ·  view source on GitHub ↗
(ctx: Context, options?: InvokeMiddlewareOptions)

Source from the content-addressed store, hash-verified

237 private keys: string[];
238
239 constructor(ctx: Context, options?: InvokeMiddlewareOptions) {
240 // Find extensions for the given extension point binding
241 const filter = extensionFilter(options?.chain ?? DEFAULT_MIDDLEWARE_CHAIN);
242 super(ctx, filter);
243 this.options = {
244 chain: DEFAULT_MIDDLEWARE_CHAIN,
245 orderedGroups: [],
246 ...options,
247 };
248 this.buildMiddlewareKeys();
249 this.open();
250 }
251
252 refresh() {
253 super.refresh();

Callers

nothing calls this directly

Calls 3

buildMiddlewareKeysMethod · 0.95
extensionFilterFunction · 0.90
openMethod · 0.80

Tested by

no test coverage detected