httpdbg is a handy tool for Python developers for debugging HTTP(S) client requests. Simply replace ‘python’ with ‘pyhttpdbg’ to start, then access http://localhost:4909 on the browser to view the requests. The tool allows for interactive console usage and can trace requests from scripts, tests with pytest, and library modules. Initiate functions/methods responsible for HTTP requests, with the option to add custom initiators. No configuration is required to begin, but various command line options are available for specific needs. The web interface offers customization options and displays all recorded requests. Surprisingly, the tool cleans up requests automatically upon detecting a new execution. Note: Controversial content could be the use of this tool for potentially monitoring sensitive information through HTTP requests.
https://github.com/cle-b/httpdbg