MCPcopy Create free account
hub / github.com/nodejs/undici / read

Function read

test/node-test/client-errors.js:206–209  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

204 opaque: 'asd',
205 body: maybeWrapStream(new Readable({
206 read () {
207 this.push('a string')
208 this.destroy(new Error('kaboom'))
209 }
210 }), type)
211 }, (err, data) => {
212 p.strictEqual(err.message, 'kaboom')

Callers

nothing calls this directly

Calls 2

pushMethod · 0.45
destroyMethod · 0.45

Tested by

no test coverage detected