MCPcopy
hub / github.com/hapijs/hapi / _invoke

Method _invoke

lib/core.js:479–493  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

477 }
478
479 async _invoke(type) {
480
481 const exts = this.extensions.server[type];
482 if (!exts.nodes) {
483 return;
484 }
485
486 // Execute extensions
487
488 for (const ext of exts.nodes) {
489 const bind = ext.bind ?? ext.realm.settings.bind;
490 const operation = ext.func.call(bind, ext.server, bind);
491 await Toolkit.timed(operation, { timeout: ext.timeout, name: type });
492 }
493 }
494
495 _defaultRoutes() {
496

Callers 3

_startMethod · 0.45
_initializeMethod · 0.45
_stopMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected