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