Skip to content
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

Redirect response history #2314

Open
wolfv opened this issue Jun 10, 2024 · 3 comments
Open

Redirect response history #2314

wolfv opened this issue Jun 10, 2024 · 3 comments
Labels
B-rfc Blocked: Request for comments. More discussion would help move this along.

Comments

@wolfv
Copy link

wolfv commented Jun 10, 2024

The Python requests library has a "redirect history" feature. That can be useful to get access to previous headers, or other response data that was sent along with a 30x status code. Here are the Python docs: https://requests.readthedocs.io/en/latest/user/quickstart/#redirection-and-history

Would you be open such a feature in reqwest?

Thanks for this wonderful library, by the way!

@ovnicraft
Copy link

@seanmonstar
Copy link
Owner

It seems like it wouldn't be too hard to add. It it worth the additional storage?

@seanmonstar seanmonstar added the B-rfc Blocked: Request for comments. More discussion would help move this along. label Jun 25, 2024
@wolfv
Copy link
Author

wolfv commented Jun 25, 2024

Maybe it's something that could be enabled / disabled on the client or request level? I think the storage cost is negligible for 99% of 30x redirects (just a few headers, maybe a bit of content).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-rfc Blocked: Request for comments. More discussion would help move this along.
Projects
None yet
Development

No branches or pull requests

3 participants