Searched refs:Morsel (Results 1 – 10 of 10) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_http_cookies.py | 224 morsel = cookies.Morsel() 228 self.assertEqual(morsel.keys(), cookies.Morsel._reserved.keys()) 233 M = cookies.Morsel() 248 M = cookies.Morsel() 276 morsel = cookies.Morsel() 294 morsel_a = cookies.Morsel() 297 morsel_b = cookies.Morsel() 309 morsel_b = cookies.Morsel() 315 morsel_b = cookies.Morsel() 323 self.assertFalse(cookies.Morsel() == 1) [all …]
|
/external/python/cpython3/Doc/library/ |
D | http.cookies.rst | 27 in Cookie name (as :attr:`~Morsel.key`). 49 are :class:`Morsel` instances. Note that upon setting a key to a value, the 50 value is first converted to a :class:`Morsel` containing the key and the value. 97 *header* are sent to each :class:`Morsel`'s :meth:`output` method. *sep* is used 113 found there as :class:`Morsel`\ s. If it is a dictionary, it is equivalent to:: 121 Morsel Objects 125 .. class:: Morsel 148 :meth:`~Morsel.__eq__` now takes :attr:`~Morsel.key` and :attr:`~Morsel.value` 152 .. attribute:: Morsel.value 157 assigning to ``value``; use :meth:`~Morsel.set` instead. [all …]
|
/external/python/cpython2/Doc/library/ |
D | cookie.rst | 31 in Cookie name (as :attr:`~Morsel.key`). 50 are :class:`Morsel` instances. Note that upon setting a key to a value, the 51 value is first converted to a :class:`Morsel` containing the key and the value. 128 *header* are sent to each :class:`Morsel`'s :meth:`output` method. *sep* is used 148 found there as :class:`Morsel`\ s. If it is a dictionary, it is equivalent to:: 156 Morsel Objects 160 .. class:: Morsel 186 .. attribute:: Morsel.value 191 .. attribute:: Morsel.coded_value 196 .. attribute:: Morsel.key [all …]
|
/external/python/cpython3/Lib/http/ |
D | cookies.py | 259 class Morsel(dict): class 342 if not isinstance(morsel, Morsel): 352 morsel = Morsel() 510 M = self.get(key, Morsel()) 516 if isinstance(value, Morsel): 591 elif key.lower() in Morsel._reserved: 596 if key.lower() in Morsel._flags:
|
/external/python/cpython2/Lib/ |
D | Cookie.py | 405 class Morsel(dict): class 588 M = self.get(key, Morsel()) 595 if isinstance(value, Morsel): 668 elif K.lower() in Morsel._reserved: 671 if K.lower() in Morsel._flags:
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.5.rst | 2304 Directly assigning values to the :attr:`~http.cookies.Morsel.key`, 2305 :attr:`~http.cookies.Morsel.value` and 2306 :attr:`~http.cookies.Morsel.coded_value` of :class:`http.cookies.Morsel` 2307 objects is deprecated. Use the :meth:`~http.cookies.Morsel.set` method 2309 :meth:`~http.cookies.Morsel.set` is deprecated, and is now ignored. 2458 * The :class:`http.cookies.Morsel` dict-like interface has been made self 2459 consistent: morsel comparison now takes the :attr:`~http.cookies.Morsel.key` 2460 and :attr:`~http.cookies.Morsel.value` into account, 2461 :meth:`~http.cookies.Morsel.copy` now results in a 2462 :class:`~http.cookies.Morsel` instance rather than a :class:`dict`, and [all …]
|
D | 2.6.rst | 1903 * The :mod:`Cookie` module's :class:`Morsel` objects now support an
|
/external/python/cpython2/Doc/whatsnew/ |
D | 2.6.rst | 1899 * The :mod:`Cookie` module's :class:`Morsel` objects now support an
|
/external/python/cpython3/Misc/ |
D | NEWS | 6496 - Issue #2211: Updated the implementation of the http.cookies.Morsel class. 6500 copy() now returns a Morsel, not a dict. repr() now contains all attributes.
|
/external/python/cpython2/Misc/ |
D | NEWS | 9204 - Issue #1638033: Cookie.Morsel gained the httponly attribute.
|