Skip to content

Commit d29e279

Browse files
authored
bpo-42037: Corrected request dependencies in CookieJar functions (GH-23112)
1 parent 0f17a75 commit d29e279

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

Doc/library/http.cookiejar.rst

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,10 @@ contained :class:`Cookie` objects.
160160
respectively), the :mailheader:`Cookie2` header is also added when appropriate.
161161

162162
The *request* object (usually a :class:`urllib.request.Request` instance)
163-
must support the methods :meth:`get_full_url`, :meth:`get_host`,
164-
:meth:`get_type`, :meth:`unverifiable`, :meth:`has_header`,
163+
must support the methods :meth:`get_full_url`, :meth:`has_header`,
165164
:meth:`get_header`, :meth:`header_items`, :meth:`add_unredirected_header`
166-
and :attr:`origin_req_host` attribute as documented by
167-
:mod:`urllib.request`.
165+
and the attributes :attr:`host`, :attr:`!type`, :attr:`unverifiable`
166+
and :attr:`origin_req_host` as documented by :mod:`urllib.request`.
168167

169168
.. versionchanged:: 3.3
170169

@@ -186,11 +185,11 @@ contained :class:`Cookie` objects.
186185
method, which returns an :class:`email.message.Message` instance.
187186

188187
The *request* object (usually a :class:`urllib.request.Request` instance)
189-
must support the methods :meth:`get_full_url`, :meth:`get_host`,
190-
:meth:`unverifiable`, and :attr:`origin_req_host` attribute, as documented
191-
by :mod:`urllib.request`. The request is used to set default values for
192-
cookie-attributes as well as for checking that the cookie is allowed to be
193-
set.
188+
must support the method :meth:`get_full_url` and the attributes
189+
:attr:`host`, :attr:`unverifiable` and :attr:`origin_req_host`,
190+
as documented by :mod:`urllib.request`. The request is used to set
191+
default values for cookie-attributes as well as for checking that the
192+
cookie is allowed to be set.
194193

195194
.. versionchanged:: 3.3
196195

0 commit comments

Comments
 (0)