-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expose urls field to response
#2606
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
base: master
Are you sure you want to change the base?
Conversation
752a019 to
1a6e8f7
Compare
1a6e8f7 to
fe6f1ce
Compare
|
@seanmonstar could you give it a look ? |
89f79f4 to
992140c
Compare
|
Thanks for the PR! Here's just some thoughts:
|
cbbca05 to
0b7073d
Compare
So I had a look, and currently It should still be easy to implement incremental history pushes in the
Done, now storing the |
0b7073d to
5159862
Compare
|
@seanmonstar looks good to you ? |
|
The other PR re-implementing redirects using tower-http is nearly complete, I'm focused on getting that merged first. And then we can see how to integrate this on top. OK? |
avoid duplicating `self.url` in `self.history` in Response This fixes test_redirect_policy_can_stop_redirects_without_an_error()
5159862 to
adb8a42
Compare
This is an intermediate step towards implementing a full python
requests-stylehistoryWhile keeping every intermediate response might be costly, at least knowing if redirects happen and how many is useful to the user, and since we already store the info, why not make it available ?
This simply exposes the
urlsfield fromPendingRequestto theResponse, and adds a utility function to get a list of all the traversed urls, including the final one.fixes: #2314