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

Add Client(allow_redirects=<...>) #1790

Merged
merged 1 commit into from
Aug 10, 2021
Merged

Conversation

tomchristie
Copy link
Member

Add a client default for allow_redirects, supporting the following usages...

client = httpx.Client(allow_redirects=<True|False>)

This brings allow_redirects in line with the timeout and auth parameters, in that they both have per-request-arguments and client-defaults, and use USE_CLIENT_DEFAULT as the default request argument.

We'll probably later follow up on this with #1785 - but this step make sense in it's own right, deserves to be a pull request on it's own. Other steps can follow later.

@tomchristie tomchristie requested a review from a team August 10, 2021 09:06
Copy link
Member

@florimondmanca florimondmanca left a comment

Choose a reason for hiding this comment

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

Sounds good. :-)

@tomchristie tomchristie merged commit 541a0af into master Aug 10, 2021
@tomchristie tomchristie deleted the client-allow-redirects-default branch August 10, 2021 12:30
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.

None yet

2 participants