I'm not too versed on these, but why not use nginx?
I haven’t tried to use nginx as an MITM proxy or this project at all, but presumably it’s easier to use this when your usecase lies closer to the client than the server and vice versa.
Here's draft proposal for 1.3 to add this feature https://github.com/saucelabs/forwarder/issues/584.
The idea is to allow users work in JavaScript with Go http.Request and http.Request. Interop between Go and JS in Goja is very good.