(opts, handler)
| 253 | } |
| 254 | |
| 255 | function 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 | |
| 265 | module.exports = pipeline |
no test coverage detected
searching dependent graphs…