Lines Matching refs:CookieJar

61 .. class:: CookieJar(policy=None)
65 The :class:`CookieJar` class stores HTTP cookies. It extracts cookies from HTTP
66 requests, and returns them in HTTP responses. :class:`CookieJar` instances
76 A :class:`CookieJar` which can load cookies from, and perhaps save cookies to, a
102 'downgraded' by the :class:`CookieJar` instance to Netscape cookies, by
113 :class:`CookieJar` instance.
145 CookieJar and FileCookieJar Objects
148 :class:`CookieJar` objects support the :term:`iterator` protocol for iterating over
151 :class:`CookieJar` has the following methods:
154 .. method:: CookieJar.add_cookie_header(request)
159 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
190 .. method:: CookieJar.set_policy(policy)
195 .. method:: CookieJar.make_cookies(response, request)
203 .. method:: CookieJar.set_cookie_if_ok(cookie, request)
208 .. method:: CookieJar.set_cookie(cookie)
214 .. method:: CookieJar.clear([domain[, path[, name]]])
227 .. method:: CookieJar.clear_session_cookies()
300 (unless the cookies on disk are changing). A :class:`CookieJar` object may
310 The following :class:`CookieJar` subclasses are provided for reading and
361 :meth:`CookieJar.extract_cookies`.
370 :meth:`CookieJar.add_cookie_header`.
516 If true, request that the :class:`CookieJar` instance downgrade RFC 2109 cookies
745 cj = cookielib.CookieJar()
764 from cookielib import CookieJar, DefaultCookiePolicy
768 cj = CookieJar(policy)