kdzwinel / betwixt

:zap: Web Debugging Proxy based on Chrome DevTools Network panel.
MIT License
4.53k stars 125 forks source link

Modifying requests and responses in flight #10

Open kdzwinel opened 8 years ago

kdzwinel commented 8 years ago

This is a long term goal - no ETA

I especially like the idea of giving user the power to do that programatically right from the Betwixt window. The biggest challenge here is to create an UI for this (reuse "Sources" panel in some way?).

TACIXAT commented 8 years ago

Very interested in this feature.

Reusing the network tab could work too. A queue of requests waiting for Forward / Drop. Requests can be modified before being forwarded, a small amount of code is needed to fixup headers (content-length, etc.).

I'll try to get familiar with the source code to see if I can contribute something here.

kdzwinel commented 8 years ago

@douggard you are very welcome to give it a shoot! I think that both: modifying requests by hand (e.g. when testing invalid responses) and programatically (e.g. when mocking API) can be useful.