Home
last modified time | relevance | path

Searched refs:Morsel (Results 1 – 11 of 11) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_http_cookies.py225 morsel = cookies.Morsel()
229 self.assertEqual(morsel.keys(), cookies.Morsel._reserved.keys())
234 M = cookies.Morsel()
249 M = cookies.Morsel()
280 morsel = cookies.Morsel()
296 morsel_a = cookies.Morsel()
299 morsel_b = cookies.Morsel()
311 morsel_b = cookies.Morsel()
317 morsel_b = cookies.Morsel()
325 self.assertFalse(cookies.Morsel() == 1)
[all …]
/external/python/cpython3/Doc/library/
Dhttp.cookies.rst27 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 Attributes :attr:`~Morsel.key`, :attr:`~Morsel.value` and
153 :attr:`~Morsel.coded_value` are read-only. Use :meth:`~Morsel.set` for
[all …]
/external/python/cpython2/Doc/library/
Dcookie.rst31 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/
Dcookies.py253 class Morsel(dict): class
321 if not isinstance(morsel, Morsel):
331 morsel = Morsel()
484 M = self.get(key, Morsel())
490 if isinstance(value, Morsel):
565 elif key.lower() in Morsel._reserved:
570 if key.lower() in Morsel._flags:
/external/python/cpython2/Lib/
DCookie.py405 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/Misc/NEWS.d/
D3.5.0a3.rst359 Updated the implementation of the http.cookies.Morsel class. Setting
363 a Morsel, not a dict. repr() now contains all attributes. Optimized
/external/python/cpython3/Doc/whatsnew/
D3.5.rst2304 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 …]
D3.7.rst2281 * Attributes :attr:`~http.cookies.Morsel.key`,
2282 :attr:`~http.cookies.Morsel.value` and
2283 :attr:`~http.cookies.Morsel.coded_value` of class
2284 :class:`http.cookies.Morsel` are now read-only.
2286 Use the :meth:`~http.cookies.Morsel.set` method for setting them.
D2.6.rst1903 * The :mod:`Cookie` module's :class:`Morsel` objects now support an
/external/python/cpython2/Misc/NEWS.d/
D2.6rc1.rst238 Cookie.Morsel gained the httponly attribute.
/external/python/cpython2/Doc/whatsnew/
D2.6.rst1899 * The :mod:`Cookie` module's :class:`Morsel` objects now support an