Hacker News new | ask | show | jobs
by billconan 638 days ago
this is very useful, but why can it only work with python code? At which level does it intercept the http traffic?

do I have to use specific http library?

2 comments

It seems to intercept calls for some popular http client libs:

https://github.com/cle-b/httpdbg/tree/main/httpdbg/hooks

It works only with Python code because it intercepts HTTP requests by hooking into certain Python functions.

It supports any HTTP library based on Python’s standard socket library. Specifically, it works with libraries like requests, httpx, aiohttp, and urllib3, as well as pytest, providing more detailed information about the initiator of the requests.