![]() Sequence of the only domains for which we accept and return cookies. DefaultCookiePolicy ( blocked_domains = None, allowed_domains = None, netscape = True, rfc2965 = False, rfc2109_as_netscape = None, hide_cookie2 = False, strict_domain = False, strict_rfc2965_unverifiable = True, strict_ns_unverifiable = False, strict_ns_domain = DefaultCookiePolicy.DomainLiberal, strict_ns_set_initial_dollar = False, strict_ns_set_path = False, secure_protocols = ('https', 'wss') ) ¶Ĭonstructor arguments should be passed as keyword arguments only.īlocked_domains is a sequence of domain names that we never accept cookiesįrom, nor return cookies to. This class is responsible for deciding whether each cookie should be acceptedįrom / returned to the server. This should not be initialized directly – use its subclasses below instead.Ĭhanged in version 3.8: The filename parameter supports a path-like object. Subclasses of this class areĭocumented in section FileCookieJar subclasses and co-operation with web browsers. Cookies are NOT loaded from the named file until either the ![]() ![]() Other arguments, see the documentation for the corresponding attributes.Ī CookieJar which can load cookies from, and perhaps save cookies to, aįile on disk. Policy is an object implementing the CookiePolicy interface. FileCookieJar ( filename = None, delayload = None, policy = None ) ¶ Responsible for storing and retrieving cookies from a file or database. CookieJar instancesĪutomatically expire contained cookies when necessary. Requests, and returns them in HTTP responses. The following classes are provided: class okiejar. Changed in version 3.3: LoadError was made a subclass of OSError instead of ![]()
0 Comments
Leave a Reply. |