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

Function read

test/hooks.test.js:1081–1084  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1079 let chunk = 'stream payload'
1080 const thePayload = new stream.Readable({
1081 read () {
1082 this.push(chunk)
1083 chunk = null
1084 }
1085 })
1086
1087 instance.addHook('onSend', function (request, reply, payload, done) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected