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

Function onResponseData

test/node-test/client-dispatch.js:132–134  ·  view source on GitHub ↗
(_controller, buf)

Source from the content-addressed store, hash-verified

130 p.strictEqual(Array.isArray(rawHeaders), true)
131 },
132 onResponseData (_controller, buf) {
133 bufs.push(buf)
134 },
135 onResponseEnd (controller) {
136 p.deepStrictEqual(controller.rawTrailers, [])
137 p.strictEqual('hello', Buffer.concat(bufs).toString('utf8'))

Callers

nothing calls this directly

Calls 2

okMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected