MCPcopy
hub / github.com/fastify/fastify / start

Function start

test/web-api.test.js:343–345  ·  test/web-api.test.js::start
(controller)

Source from the content-addressed store, hash-verified

341 fastify.get(class="st">'/', function (request, reply) {
342 const stream = new ReadableStream({
343 start (controller) {
344 controller.error(new Error(class="st">'stream error'))
345 }
346 })
347 reply.send(stream)
348 })

Callers

nothing calls this directly

Calls 2

errorMethod · 0.80
closeMethod · 0.80

Tested by

no test coverage detected