I'd used mitmproxy to reverse engineer browser extensions and mobile apps and it did the trick. It was quite some time ago.