Replies: 1 comment
|
Thank you for your interest in this project @vgavro !
When implementing the Python version, we aimed to have a standalone library as well, and we modelled the API after You are raising a good point, though. If you think that adding the Cheers! |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Any reason why you decided to implement
httpx.Client-like interface instead of implementingImplitTransport(httpx.BaseTransport)which can be passed to standard Client likehttpx.Client(transport=ImplitTransport(impersonate="chrome", force_http3=True))? Custom request parameters can be passed withrequest.extensionslikehttpx.Client().get("https://google.com", extensions={"force_http3": True})httpx.BaseTransport, wrap transports with retries etc). Problem here - API incompatibility + type checkers on passing implit.Client instead of httpx.Client!I'm asking this, because curl-cffi also took that approach, which forced me to write https://github.com/vgavro/httpx-curl-cffi just for the sake of API compatibility to re-use httpx ecosystem (like https://github.com/will-ockmore/httpx-retries wrapper, caching wrappers, security wrappers, name it).
Thank you for your time!
All reactions