Skip to content
Open
Changes from all 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 @@ -1050,6 +1050,10 @@ AbstractBasicAuthHandler Objects
authenticate for, *req* should be the (failed) :class:`Request` object, and
*headers* should be the error headers.

*headers* must be a mapping-like object with case-insensitive lookup
that implements the ``get_all()`` method,
such as :class:`email.message.Message` or :class:`wsgiref.headers.Headers`.

*host* is either an authority (e.g. ``"python.org"``) or a URL containing an
authority component (e.g. ``"https://python.org/"``). In either case, the
authority must not contain a userinfo component (so, ``"python.org"`` and
Expand Down Expand Up @@ -1091,6 +1095,9 @@ AbstractDigestAuthHandler Objects
should be the (failed) :class:`Request` object, and *headers* should be the
error headers.

*headers* must be a mapping-like object with case-insensitive lookup,
such as :class:`email.message.Message` or :class:`wsgiref.headers.Headers`.


.. _http-digest-auth-handler:

Expand Down
Loading