handler() — fastify Function Reference
Architecture documentation for the handler() function in handle-request.js from the fastify codebase.
Entity Profile
Dependency Diagram
graph TD 060f474d_3ec6_ccf3_5b20_c7c0bafc7898["handler()"] 5f4e2742_950b_3da4_4ca3_7033016d7828["handle-request.js"] 060f474d_3ec6_ccf3_5b20_c7c0bafc7898 -->|defined in| 5f4e2742_950b_3da4_4ca3_7033016d7828 0ea45009_d84c_8153_c668_66d7b8130f86["handleRequest()"] 0ea45009_d84c_8153_c668_66d7b8130f86 -->|calls| 060f474d_3ec6_ccf3_5b20_c7c0bafc7898 24aeb44c_b4f6_170d_7d02_2fc8213613f0["preHandlerCallbackInner()"] 24aeb44c_b4f6_170d_7d02_2fc8213613f0 -->|calls| 060f474d_3ec6_ccf3_5b20_c7c0bafc7898 7572f912_c1b1_90a5_aa92_ccc1f36a0010["preValidationCallback()"] 060f474d_3ec6_ccf3_5b20_c7c0bafc7898 -->|calls| 7572f912_c1b1_90a5_aa92_ccc1f36a0010 style 060f474d_3ec6_ccf3_5b20_c7c0bafc7898 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
lib/handle-request.js lines 68–83
function handler (request, reply) {
try {
if (request[kRouteContext].preValidation !== null) {
preValidationHookRunner(
request[kRouteContext].preValidation,
request,
reply,
preValidationCallback
)
} else {
preValidationCallback(null, request, reply)
}
} catch (err) {
preValidationCallback(err, request, reply)
}
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does handler() do?
handler() is a function in the fastify codebase, defined in lib/handle-request.js.
Where is handler() defined?
handler() is defined in lib/handle-request.js at line 68.
What does handler() call?
handler() calls 1 function(s): preValidationCallback.
What calls handler()?
handler() is called by 2 function(s): handleRequest, preHandlerCallbackInner.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free