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

Function read

test/hooks-async.test.js:206–210  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

204 fastify.addHook('preParsing', async (req, reply, payload) => {
205 const stream = new Readable({
206 read () {
207 const error = new Error('kaboom')
208 error.statusCode = 408
209 this.destroy(error)
210 }
211 })
212 stream.receivedEncodedLength = 20
213 return stream

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected