How can I edit what server sent ? e.g.: function response_data(data){ data = new Buffer("<b>Test</b>", "binary"); } var processor = function(proxy) { proxy.on("response_data", response_data); }; Doesn't work.
How can I edit what server sent ?
e.g.:
function response_data(data){
data = new Buffer("Test", "binary");
}
var processor = function(proxy) {
proxy.on("response_data", response_data);
};
Doesn't work.