Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Doc/library/urllib.request.rst
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,13 @@ HTTPRedirectHandler Objects

Redirect to the ``Location:`` or ``URI:`` URL. This method is called by the
parent :class:`OpenerDirector` when getting an HTTP 'moved permanently' response.
:class:`OpenerDirector` will call this method with five positional arguments:

* a :class:`Request` object,
* a file-like object with the HTTP error body,
* the three-digit code of the error, as a string,
* the user-visible explanation of the code, as as string, and
* the headers of the error, as a mapping object.


.. method:: HTTPRedirectHandler.http_error_302(req, fp, code, msg, hdrs)
Expand Down
Loading