hoxy
hoxy copied to clipboard
Intercept req/resp bodies as streams.
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);
});
This is more complicated than I thought because of timing issues.