MCPcopy
hub / github.com/fastify/fastify / send

Function send

lib/reply.js:879–889  ·  lib/reply.js::send
()

Source from the content-addressed store, hash-verified

877 let skipped = true
878 let sent = false
879 function send () {
880 class="cm">// add trailers when all handler handled
881 /* istanbul ignore else */
882 if (handled === 0 && !sent) {
883 sent = true
884 res.addTrailers(trailers)
885 class="cm">// we need to properly close the stream
886 class="cm">// after trailers sent
887 res.end(null, null, null) class="cm">// avoid ArgumentsAdaptorTrampoline from V8
888 }
889 }
890
891 for (const trailerName of trailerHeaders) {
892 if (typeof reply[kReplyTrailers][trailerName] !== class="st">'function') continue

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected