MCPcopy
hub / github.com/nodejs/undici / pipeline

Function pipeline

lib/api/api-pipeline.js:255–263  ·  view source on GitHub ↗
(opts, handler)

Source from the content-addressed store, hash-verified

253}
254
255function pipeline (opts, handler) {
256 try {
257 const pipelineHandler = new PipelineHandler(opts, handler)
258 this.dispatch({ ...opts, body: pipelineHandler.req }, pipelineHandler)
259 return pipelineHandler.ret
260 } catch (err) {
261 return new PassThrough().destroy(err)
262 }
263}
264
265module.exports = pipeline

Callers 13

writeStreamFunction · 0.85
onResponseStartFunction · 0.85
#connectMethod · 0.85
client-pipeline.jsFile · 0.85
request-timeout.jsFile · 0.85
pull-dont-push.jsFile · 0.85
api.test-d.tsFile · 0.85
agent.jsFile · 0.85
onRequestUpgradeMethod · 0.85

Calls 2

dispatchMethod · 0.45
destroyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…