greim/hoxy

Intercept req/resp bodies as streams.

Opened this issue · 1 comments

greim commented

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 commented

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