cookiejar

Module Contents

Classes

CookieJar(self) Implements cookie storage adhering to RFC 6265.
DummyCookieJar(self) Implements a dummy cookie storage.
class CookieJar

Implements cookie storage adhering to RFC 6265.

__init__()
save(file_path)
load(file_path)
clear()
__iter__()
__len__()
_do_expiration()
update_cookies(cookies, response_url=URL)

Update cookies.

filter_cookies(request_url=URL)

Returns this jar’s cookies filtered by their attributes.

_is_domain_match(hostname)

Implements domain matching adhering to RFC 6265.

_is_path_match(cookie_path)

Implements path matching adhering to RFC 6265.

_parse_date(date_str)

Implements date string parsing adhering to RFC 6265.

class DummyCookieJar

Implements a dummy cookie storage.

It can be used with the ClientSession when no cookie processing is needed.

__init__()
__iter__()
__len__()
clear()
update_cookies(cookies, response_url=None)
filter_cookies(request_url)