buildHooks() — fastify Function Reference
Architecture documentation for the buildHooks() function in hooks.js from the fastify codebase.
Entity Profile
Dependency Diagram
graph TD aeaaa79e_accb_0181_a4df_2201a186c8ee["buildHooks()"] 57bfad3b_e85a_1ebf_2702_a13bb6484083["hooks.js"] aeaaa79e_accb_0181_a4df_2201a186c8ee -->|defined in| 57bfad3b_e85a_1ebf_2702_a13bb6484083 3d1a5884_bd0d_77e4_07ec_f10e6904d350["Hooks()"] aeaaa79e_accb_0181_a4df_2201a186c8ee -->|calls| 3d1a5884_bd0d_77e4_07ec_f10e6904d350 style aeaaa79e_accb_0181_a4df_2201a186c8ee fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
lib/hooks.js lines 73–91
function buildHooks (h) {
const hooks = new Hooks()
hooks.onRequest = h.onRequest.slice()
hooks.preParsing = h.preParsing.slice()
hooks.preValidation = h.preValidation.slice()
hooks.preSerialization = h.preSerialization.slice()
hooks.preHandler = h.preHandler.slice()
hooks.onSend = h.onSend.slice()
hooks.onResponse = h.onResponse.slice()
hooks.onError = h.onError.slice()
hooks.onRoute = h.onRoute.slice()
hooks.onRegister = h.onRegister.slice()
hooks.onTimeout = h.onTimeout.slice()
hooks.onRequestAbort = h.onRequestAbort.slice()
hooks.onReady = []
hooks.onListen = []
hooks.preClose = []
return hooks
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does buildHooks() do?
buildHooks() is a function in the fastify codebase, defined in lib/hooks.js.
Where is buildHooks() defined?
buildHooks() is defined in lib/hooks.js at line 73.
What does buildHooks() call?
buildHooks() calls 1 function(s): Hooks.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free