this change adds the allow_redirects argument to the request methods. It defaults to True so that current behavior stays the same for anyone who doesn't explicitly change the argument to False.
If it's False it will return the redirect response (300 level status code) to the caller that initiated the request instead of automatically following the redirect and returning the final response to the caller.
this change adds the
allow_redirects
argument to the request methods. It defaults toTrue
so that current behavior stays the same for anyone who doesn't explicitly change the argument toFalse
.If it's False it will return the redirect response (300 level status code) to the caller that initiated the request instead of automatically following the redirect and returning the final response to the caller.
This matches the functionality in the CPython requests library API