diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-08-01 02:49:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-01 02:49:47 (GMT) |
commit | a4cda28f7b83c25ed412f8ce2a502fd54d7b4c5a (patch) | |
tree | b758b036428472f3b480fd881d7aa4a38d5f88fd | |
parent | ab444b7fc632d9ed25210aff6c45776c8c5f3554 (diff) | |
download | cpython-a4cda28f7b83c25ed412f8ce2a502fd54d7b4c5a.zip cpython-a4cda28f7b83c25ed412f8ce2a502fd54d7b4c5a.tar.gz cpython-a4cda28f7b83c25ed412f8ce2a502fd54d7b4c5a.tar.bz2 |
bpo-42037: Corrected request dependencies in CookieJar functions (GH-23112)
(cherry picked from commit d29e279de38e7bc3b7deda573ba23d65831d9351)
Co-authored-by: markus-sus <73822103+markus-sus@users.noreply.github.com>
-rw-r--r-- | Doc/library/http.cookiejar.rst | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/Doc/library/http.cookiejar.rst b/Doc/library/http.cookiejar.rst index 51a8c53..53b3087 100644 --- a/Doc/library/http.cookiejar.rst +++ b/Doc/library/http.cookiejar.rst @@ -160,11 +160,10 @@ contained :class:`Cookie` objects. respectively), the :mailheader:`Cookie2` header is also added when appropriate. The *request* object (usually a :class:`urllib.request.Request` instance) - must support the methods :meth:`get_full_url`, :meth:`get_host`, - :meth:`get_type`, :meth:`unverifiable`, :meth:`has_header`, + must support the methods :meth:`get_full_url`, :meth:`has_header`, :meth:`get_header`, :meth:`header_items`, :meth:`add_unredirected_header` - and :attr:`origin_req_host` attribute as documented by - :mod:`urllib.request`. + and the attributes :attr:`host`, :attr:`!type`, :attr:`unverifiable` + and :attr:`origin_req_host` as documented by :mod:`urllib.request`. .. versionchanged:: 3.3 @@ -186,11 +185,11 @@ contained :class:`Cookie` objects. method, which returns an :class:`email.message.Message` instance. The *request* object (usually a :class:`urllib.request.Request` instance) - must support the methods :meth:`get_full_url`, :meth:`get_host`, - :meth:`unverifiable`, and :attr:`origin_req_host` attribute, as documented - by :mod:`urllib.request`. The request is used to set default values for - cookie-attributes as well as for checking that the cookie is allowed to be - set. + must support the method :meth:`get_full_url` and the attributes + :attr:`host`, :attr:`unverifiable` and :attr:`origin_req_host`, + as documented by :mod:`urllib.request`. The request is used to set + default values for cookie-attributes as well as for checking that the + cookie is allowed to be set. .. versionchanged:: 3.3 |