feat: Initial support for httpx#2336
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2336 +/- ##
==========================================
- Coverage 95.96% 95.14% -0.82%
==========================================
Files 80 82 +2
Lines 5331 5440 +109
==========================================
+ Hits 5116 5176 +60
- Misses 215 264 +49
Flags with carried forward coverage won't be shown. Click here to find out more.
|
183d29d to
3a363d2
Compare
9db988a to
1a3e23d
Compare
20bcffb to
3918639
Compare
1a7938b to
fa23370
Compare
Thanks both for driving this, sorry again this is taking a while for me to get back into, I thought this would be easier and only the most low-level stuff factored out, similar to how it's done in https://python-redmine.com/advanced/request_engines.html / https://github.com/maxtepkeev/python-redmine/tree/master/redminelib/engines. So just wanted to make sure we take a good look before we merge if there's a simple way :) |
I liked the approach taken in |
dc66009 to
55edad8
Compare
c0132ac to
9626499
Compare
|
Would breaking this PR into smaller pieces would make sense? |
I think this might help yes @lmilbaum! https://github.com/python-gitlab/python-gitlab/pull/2336/files#r1010073025 Also, it would potentially be a smaller PR if we ensure we keep public https://python-gitlab.readthedocs.io/en/stable/api-levels.html |
|
So biggest issue with this for me is the type-hints. Everything having So I think we need to figure out a solution that doesn't use |
|
Thank you for the feedback @nejch and @JohnVillalovos. I've started breaking this up into smaller PRs. Take a look at #2382 |
084c405 to
884daf3
Compare
A followup of #1036
Two clients defined:
requestsandhttpx. As long ashttpxis not fully implemented and adopted by the community, keeping therequestsclient as the default.