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

Function read

test/route-hooks.test.js:522–526  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

520 preParsing: async (req, reply, payload) => {
521 const stream = new Readable({
522 read () {
523 const error = new Error('kaboom')
524 error.statusCode = 408
525 this.destroy(error)
526 }
527 })
528 stream.receivedEncodedLength = 20
529 return stream

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected