-
Notifications
You must be signed in to change notification settings - Fork 669
feat: Initial support for httpx #2336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lmilbaum I made a quick initial pass. Would be interested to see how this runs on functional tests. Thanks a lot for working on this, it's something I've been thinking of myself for a while!
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:
requests
andhttpx
. As long ashttpx
is not fully implemented and adopted by the community, keeping therequests
client as the default.