onSendHook() — fastify Function Reference
Architecture documentation for the onSendHook() function in reply.js from the fastify codebase.
Entity Profile
Dependency Diagram
graph TD 0da2f4ee_9f19_0b3c_eba5_b3fc33ca1fea["onSendHook()"] 4bcd71dc_1ec2_5fe8_b8ff_4a371e392925["reply.js"] 0da2f4ee_9f19_0b3c_eba5_b3fc33ca1fea -->|defined in| 4bcd71dc_1ec2_5fe8_b8ff_4a371e392925 86dc4e98_212d_2b7c_7128_76f05e7a8787["send()"] 86dc4e98_212d_2b7c_7128_76f05e7a8787 -->|calls| 0da2f4ee_9f19_0b3c_eba5_b3fc33ca1fea bf139b43_eb7c_4f05_1cbe_0dea5d44a338["preSerializationHookEnd()"] bf139b43_eb7c_4f05_1cbe_0dea5d44a338 -->|calls| 0da2f4ee_9f19_0b3c_eba5_b3fc33ca1fea 8460cb7c_51e5_baba_0f16_9ea8d190d139["onSendEnd()"] 0da2f4ee_9f19_0b3c_eba5_b3fc33ca1fea -->|calls| 8460cb7c_51e5_baba_0f16_9ea8d190d139 style 0da2f4ee_9f19_0b3c_eba5_b3fc33ca1fea fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
lib/reply.js lines 529–541
function onSendHook (reply, payload) {
if (reply[kRouteContext].onSend !== null) {
onSendHookRunner(
reply[kRouteContext].onSend,
reply.request,
reply,
payload,
wrapOnSendEnd
)
} else {
onSendEnd(reply, payload)
}
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does onSendHook() do?
onSendHook() is a function in the fastify codebase, defined in lib/reply.js.
Where is onSendHook() defined?
onSendHook() is defined in lib/reply.js at line 529.
What does onSendHook() call?
onSendHook() calls 1 function(s): onSendEnd.
What calls onSendHook()?
onSendHook() is called by 2 function(s): preSerializationHookEnd, send.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free