Closed vvo closed 9 years ago
Using moll/node-mitm I was able to make faux-jax intercept Node.js http/https module using the same interface.
It means faux-jax now works both on the browser and the server.
The big change is that intercepting requests is now asynchronous:
var fauxJax = require('faux-jax'); fauxJax.on('request', function(request) { // request.respond.. });
Using moll/node-mitm I was able to make faux-jax intercept Node.js http/https module using the same interface.
It means faux-jax now works both on the browser and the server.
The big change is that intercepting requests is now asynchronous: