MCPcopy
hub / github.com/fastify/fastify / sendStreamTrailer

Function sendStreamTrailer

lib/reply.js:925–928  ·  view source on GitHub ↗
(payload, res, reply)

Source from the content-addressed store, hash-verified

923}
924
925function sendStreamTrailer (payload, res, reply) {
926 if (reply[kReplyTrailers] === null) return
927 payload.on('end', () => sendTrailer(null, res, reply))
928}
929
930function onErrorHook (reply, error, cb) {
931 if (reply[kRouteContext].onError !== null && !reply[kReplyNextErrorHandler]) {

Callers 1

sendStreamFunction · 0.85

Calls 1

sendTrailerFunction · 0.85

Tested by

no test coverage detected