hoxy icon indicating copy to clipboard operation
hoxy copied to clipboard

Intercept req/resp bodies as streams.

Open greim opened this issue 10 years ago • 1 comments

This would allow people to manipulate source streams directly, as in:

proxy.intercept({
  phase: 'response',
  as: 'stream'
}, function(req, res) {
  resp.stream = resp.stream.pipe(myTransformStream);
});

greim avatar Jul 19 '15 03:07 greim

This is more complicated than I thought because of timing issues.

greim avatar Jul 19 '15 05:07 greim