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

Function read

test/handler-timeout.test.js:187–190  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

185 fastify.get('/', { handlerTimeout: 5000 }, async (request, reply) => {
186 const stream = new Readable({
187 read () {
188 this.push('hello')
189 this.push(null)
190 }
191 })
192 reply.type('text/plain').send(stream)
193 return reply

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected