Lines Matching refs:CookieJar

54 .. class:: CookieJar(policy=None)
58 The :class:`CookieJar` class stores HTTP cookies. It extracts cookies from HTTP
59 requests, and returns them in HTTP responses. :class:`CookieJar` instances
69 A :class:`CookieJar` which can load cookies from, and perhaps save cookies to, a
95 'downgraded' by the :class:`CookieJar` instance to Netscape cookies, by
106 :class:`CookieJar` instance.
139 CookieJar and FileCookieJar Objects
142 :class:`CookieJar` objects support the :term:`iterator` protocol for iterating over
145 :class:`CookieJar` has the following methods:
148 .. method:: CookieJar.add_cookie_header(request)
153 the :class:`CookieJar`'s :class:`CookiePolicy` instance are true and false
169 .. method:: CookieJar.extract_cookies(response, request)
171 Extract cookies from HTTP *response* and store them in the :class:`CookieJar`,
174 The :class:`CookieJar` will look for allowable :mailheader:`Set-Cookie` and
194 .. method:: CookieJar.set_policy(policy)
199 .. method:: CookieJar.make_cookies(response, request)
207 .. method:: CookieJar.set_cookie_if_ok(cookie, request)
212 .. method:: CookieJar.set_cookie(cookie)
218 .. method:: CookieJar.clear([domain[, path[, name]]])
231 .. method:: CookieJar.clear_session_cookies()
302 (unless the cookies on disk are changing). A :class:`CookieJar` object may
312 The following :class:`CookieJar` subclasses are provided for reading and
358 :meth:`CookieJar.extract_cookies`.
367 :meth:`CookieJar.add_cookie_header`.
513 If true, request that the :class:`CookieJar` instance downgrade :rfc:`2109` cookies
734 cj = http.cookiejar.CookieJar()
753 from http.cookiejar import CookieJar, DefaultCookiePolicy
757 cj = CookieJar(policy)