MCPcopy
hub / github.com/fastify/fastify / _addHook

Function _addHook

fastify.js:611–614  ·  view source on GitHub ↗
(name, fn)

Source from the content-addressed store, hash-verified

609 return this
610
611 function _addHook (name, fn) {
612 this[kHooks].add(name, fn)
613 this[kChildren].forEach(child => _addHook.call(child, name, fn))
614 }
615 }
616
617 // wrapper that we expose to the user for schemas handling

Callers

nothing calls this directly

Calls 1

addMethod · 0.80

Tested by

no test coverage detected