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 history #939

Merged
merged 4 commits into from
Jan 17, 2025
Merged

Redirect history #939

merged 4 commits into from
Jan 17, 2025

Conversation

harmless-tech
Copy link
Contributor

@harmless-tech harmless-tech commented Jan 16, 2025

#731
Adds the option .save_redirect_history(bool) to the config.
When true the function get_redirect_history() on the ResponseExt trait returns a Some(&[Uri]) which will contain the request, any redirects, and the final uris.
When false get_redirect_history() returns None.

Copy link
Owner

@algesten algesten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @harmless-tech, and welcome to ureq!

Thanks for looking at this. Overall looks great. Some small comments about naming etc. One question about signature.

src/config.rs Outdated Show resolved Hide resolved
src/config.rs Outdated Show resolved Hide resolved
src/response.rs Outdated Show resolved Hide resolved
@algesten algesten merged commit 98057ad into algesten:main Jan 17, 2025
34 checks passed
@algesten
Copy link
Owner

Thank you very much for taking this on!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants