Skip to content
Myr

Merge pull request #2245 from sigmavirus24/doc-fix

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Correct redirection introduction

authored by Cory Benfield · committed by Cory Benfield · parents d28d45a, 671ba85 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:docs/user/quickstart.rst+2 added-2 removed
370 unmodified lines
371372We can use the ``history`` property of the Response object to track redirection.373374The :meth:`Response.history <requests.Response.history>` list contains the375:class:`Request <requests.Request>` objects that were created in order to375:class:`Response <requests.Response>` objects that were created in order to376complete the request. The list is sorted from the oldest to the most recent377request.377response.378379For example, GitHub redirects all HTTP requests to HTTPS::380381 >>> r = requests.get('http://github.com')
67 unmodified lines