mirror of https://github.com/python/cpython
bpo-42037: Corrected request dependencies in CookieJar functions (GH-23112)
This commit is contained in:
parent
0f17a754d9
commit
d29e279de3
|
@ -160,11 +160,10 @@ contained :class:`Cookie` objects.
|
||||||
respectively), the :mailheader:`Cookie2` header is also added when appropriate.
|
respectively), the :mailheader:`Cookie2` header is also added when appropriate.
|
||||||
|
|
||||||
The *request* object (usually a :class:`urllib.request.Request` instance)
|
The *request* object (usually a :class:`urllib.request.Request` instance)
|
||||||
must support the methods :meth:`get_full_url`, :meth:`get_host`,
|
must support the methods :meth:`get_full_url`, :meth:`has_header`,
|
||||||
:meth:`get_type`, :meth:`unverifiable`, :meth:`has_header`,
|
|
||||||
:meth:`get_header`, :meth:`header_items`, :meth:`add_unredirected_header`
|
:meth:`get_header`, :meth:`header_items`, :meth:`add_unredirected_header`
|
||||||
and :attr:`origin_req_host` attribute as documented by
|
and the attributes :attr:`host`, :attr:`!type`, :attr:`unverifiable`
|
||||||
:mod:`urllib.request`.
|
and :attr:`origin_req_host` as documented by :mod:`urllib.request`.
|
||||||
|
|
||||||
.. versionchanged:: 3.3
|
.. versionchanged:: 3.3
|
||||||
|
|
||||||
|
@ -186,11 +185,11 @@ contained :class:`Cookie` objects.
|
||||||
method, which returns an :class:`email.message.Message` instance.
|
method, which returns an :class:`email.message.Message` instance.
|
||||||
|
|
||||||
The *request* object (usually a :class:`urllib.request.Request` instance)
|
The *request* object (usually a :class:`urllib.request.Request` instance)
|
||||||
must support the methods :meth:`get_full_url`, :meth:`get_host`,
|
must support the method :meth:`get_full_url` and the attributes
|
||||||
:meth:`unverifiable`, and :attr:`origin_req_host` attribute, as documented
|
:attr:`host`, :attr:`unverifiable` and :attr:`origin_req_host`,
|
||||||
by :mod:`urllib.request`. The request is used to set default values for
|
as documented by :mod:`urllib.request`. The request is used to set
|
||||||
cookie-attributes as well as for checking that the cookie is allowed to be
|
default values for cookie-attributes as well as for checking that the
|
||||||
set.
|
cookie is allowed to be set.
|
||||||
|
|
||||||
.. versionchanged:: 3.3
|
.. versionchanged:: 3.3
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue