Lines Matching refs:DefaultCookiePolicy
85 …DefaultCookiePolicy( blocked_domains=None, allowed_domains=None, netscape=True, rfc2965=False, rfc…
94 :class:`CookiePolicy` and :class:`DefaultCookiePolicy` objects.
96 :class:`DefaultCookiePolicy` implements the standard accept / reject rules for
103 :class:`DefaultCookiePolicy` also provides some parameters to allow some
431 from :class:`DefaultCookiePolicy` and overriding some or all of the methods
438 DefaultCookiePolicy Objects
451 class MyCookiePolicy(http.cookiejar.DefaultCookiePolicy):
453 if not http.cookiejar.DefaultCookiePolicy.set_ok(self, cookie, request):
482 :class:`DefaultCookiePolicy` implements the following additional methods:
485 .. method:: DefaultCookiePolicy.blocked_domains()
490 .. method:: DefaultCookiePolicy.set_blocked_domains(blocked_domains)
495 .. method:: DefaultCookiePolicy.is_blocked(domain)
500 .. method:: DefaultCookiePolicy.allowed_domains()
505 .. method:: DefaultCookiePolicy.set_allowed_domains(allowed_domains)
510 .. method:: DefaultCookiePolicy.is_not_allowed(domain)
515 :class:`DefaultCookiePolicy` instances have the following attributes, which are
520 .. attribute:: DefaultCookiePolicy.rfc2109_as_netscape
532 .. attribute:: DefaultCookiePolicy.strict_domain
541 .. attribute:: DefaultCookiePolicy.strict_rfc2965_unverifiable
551 .. attribute:: DefaultCookiePolicy.strict_ns_unverifiable
556 .. attribute:: DefaultCookiePolicy.strict_ns_domain
562 .. attribute:: DefaultCookiePolicy.strict_ns_set_initial_dollar
567 .. attribute:: DefaultCookiePolicy.strict_ns_set_path
576 .. attribute:: DefaultCookiePolicy.DomainStrictNoDots
583 .. attribute:: DefaultCookiePolicy.DomainStrictNonDomain
591 .. attribute:: DefaultCookiePolicy.DomainRFC2965Match
599 .. attribute:: DefaultCookiePolicy.DomainLiberal
605 .. attribute:: DefaultCookiePolicy.DomainStrict
756 The next example illustrates the use of :class:`DefaultCookiePolicy`. Turn on
762 from http.cookiejar import CookieJar, DefaultCookiePolicy
763 policy = DefaultCookiePolicy(