Uh oh!
There was an error while loading. Please reload this page.
Make raise_for_status chainable - #2776
Conversation
a2f8dbe to
00c6795Compareraise_for_status chainableraise_for_status chainable
abersheeran
left a comment
There was a problem hiding this comment.
LGTM. It's a small change, but the experience will be much better.
lovelydinosaur
commented
Jul 31, 2023
Okay great, so...
|
I think this usage should be mentioned in the docstring and prose documentation. |
michaeloliverx
commented
Jul 31, 2023
Really nice DX improvement here, I see myself using this a lot! |
document updated |
lovelydinosaur
left a comment
There was a problem hiding this comment.
Looks good. Some minor suggestions...
(Other could also be considered)
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Tom Christie <tom@tomchristie.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
trim21
commented
Aug 1, 2023
is there any ETA on next release? |
lovelydinosaur
commented
Aug 1, 2023
If you're up for helping drive a release pull request, then we could fix up a minor point release whenever really. |
karpetrosyan
commented
Aug 1, 2023
Can we include encode/httpcore#745 in the next httpx release? First, we should release httpcore with that pull request and then release httpx |
* merge upstream * lint * Update test_async_client.py * update docs * add example * Update docs/quickstart.md Co-authored-by: Tom Christie <tom@tomchristie.com> * Update CHANGELOG.md Co-authored-by: Tom Christie <tom@tomchristie.com> * Update docs/quickstart.md Co-authored-by: Tom Christie <tom@tomchristie.com> --------- Co-authored-by: Tom Christie <tom@tomchristie.com>
Summary
make it possible to write code like
r = httpx.get('...').raise_for_status().json()Refs #2775
Checklist