unjs / httpxy

🔀 A Full-Featured HTTP and WebSocket Proxy for Node.js
Other
194 stars 12 forks source link

Rewrite request and response (MITM proxy) #43

Open rigwild opened 8 months ago

rigwild commented 8 months ago

Describe the feature

It could be a very nice feature to be able to rewrite request and response headers/body.

The goal would be to have a full-featured MITM proxy with programmatic rules that trigger based on patterns e.g. on hostname my-domain.com, run the provided function

Something like Charles Proxy or Burp Proxy, but with a modern syntax and access to the wide JavaScript dependencies ecosystem

TLS encryption-decryption should be implemented so that we can MITM HTTPS connections.

What do you think?

Additional information