Retrieve the redirect history? #2696
Unanswered
aw-was-here
asked this question in
Ideas
Replies: 1 comment
-
We do expose the redirect history on the https://www.python-httpx.org/quickstart/#redirection-and-history I'm not sure if that's what you're looking for or not. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I'm looking at how
httpx
handles redirects and there are some custom things I'd like to do, such as letting scheme up/down grades be "free." Since hooks are fired off after every redirect (hooray!), it is certain possible to do my own record keeping and counting... but it would seem to be a lot easier to just have the redirection history exposed from inside the request that is passed tohook
. Is there any downside to doing so? Would a PR be accepted?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions