node-mitm-proxy icon indicating copy to clipboard operation
node-mitm-proxy copied to clipboard

Sending custom responses

Open rahulsmehta opened this issue 13 years ago • 0 comments

Hello,

Is it possible to send back custom responses with the MITM proxy? As in, when the proxy.on('request') event is triggered, is it possible to send back a custom response to the caller of the request, which would completely bypass the server?

Thank you

rahulsmehta avatar Jul 26 '12 20:07 rahulsmehta