MCPcopy
hub / github.com/fastify/fastify / wrapOnSendEnd

Function wrapOnSendEnd

lib/reply.js:557–563  ·  view source on GitHub ↗
(err, request, reply, payload)

Source from the content-addressed store, hash-verified

555}
556
557function wrapOnSendEnd (err, request, reply, payload) {
558 if (err != null) {
559 onErrorHook(reply, err)
560 } else {
561 onSendEnd(reply, payload)
562 }
563}
564
565function safeWriteHead (reply, statusCode) {
566 const res = reply.raw

Callers

nothing calls this directly

Calls 2

onErrorHookFunction · 0.85
onSendEndFunction · 0.85

Tested by

no test coverage detected