MCPcopy Create free account
hub / github.com/fastify/fastify / start

Function start

test/route.7.test.js:69–71  ·  view source on GitHub ↗
(controller)

Source from the content-addressed store, hash-verified

67 handler: (req, reply) => {
68 const webStream = new ReadableStream({
69 start (controller) {
70 controller.enqueue('Hello from web stream!')
71 },
72 cancel (reason) {
73 t.assert.strictEqual(reason, 'Stream cancelled by HEAD route')
74 throw expectedError

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected