How to get status of a StreamResponse?
#67
Replies: 1 comment 3 replies
-
No, wait. It should be provided by Anyway, closing. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
https://github.com/HoneyryderChuck/httpx/blob/master/doc/release_notes/0_14_0.md has this example:
and similarly in https://honeyryderchuck.gitlab.io/httpx/wiki/Stream:
But when I tried to call
response.statusin my code, I getNoSuchMethod; and indeed, looking at theStreamResponsecode the method isn't there. I know it throws an exception for 4xx/5xx and I can get the status from the exception, but how to handle the redirect cases?Beta Was this translation helpful? Give feedback.
All reactions