()
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected