Lines Matching refs:DefaultCookiePolicy
88 …DefaultCookiePolicy( blocked_domains=None, allowed_domains=None, netscape=True, rfc2965=False, rfc…
95 :class:`DefaultCookiePolicy` objects.
97 :class:`DefaultCookiePolicy` implements the standard accept / reject rules for
104 :class:`DefaultCookiePolicy` also provides some parameters to allow some
425 from :class:`DefaultCookiePolicy` and overriding some or all of the methods
432 DefaultCookiePolicy Objects
445 class MyCookiePolicy(cookielib.DefaultCookiePolicy):
447 if not cookielib.DefaultCookiePolicy.set_ok(self, cookie, request):
476 :class:`DefaultCookiePolicy` implements the following additional methods:
479 .. method:: DefaultCookiePolicy.blocked_domains()
484 .. method:: DefaultCookiePolicy.set_blocked_domains(blocked_domains)
489 .. method:: DefaultCookiePolicy.is_blocked(domain)
494 .. method:: DefaultCookiePolicy.allowed_domains()
499 .. method:: DefaultCookiePolicy.set_allowed_domains(allowed_domains)
504 .. method:: DefaultCookiePolicy.is_not_allowed(domain)
509 :class:`DefaultCookiePolicy` instances have the following attributes, which are
514 .. attribute:: DefaultCookiePolicy.rfc2109_as_netscape
528 .. attribute:: DefaultCookiePolicy.strict_domain
537 .. attribute:: DefaultCookiePolicy.strict_rfc2965_unverifiable
547 .. attribute:: DefaultCookiePolicy.strict_ns_unverifiable
552 .. attribute:: DefaultCookiePolicy.strict_ns_domain
558 .. attribute:: DefaultCookiePolicy.strict_ns_set_initial_dollar
563 .. attribute:: DefaultCookiePolicy.strict_ns_set_path
572 .. attribute:: DefaultCookiePolicy.DomainStrictNoDots
579 .. attribute:: DefaultCookiePolicy.DomainStrictNonDomain
587 .. attribute:: DefaultCookiePolicy.DomainRFC2965Match
595 .. attribute:: DefaultCookiePolicy.DomainLiberal
601 .. attribute:: DefaultCookiePolicy.DomainStrict
758 The next example illustrates the use of :class:`DefaultCookiePolicy`. Turn on
764 from cookielib import CookieJar, DefaultCookiePolicy
765 policy = DefaultCookiePolicy(
766 rfc2965=True, strict_ns_domain=DefaultCookiePolicy.DomainStrict,