http.cookiejar.DefaultCookiePolicy.allowed_domains()

DefaultCookiePolicy.allowed_domains() Return None, or the sequence of allowed domains (as a tuple).

http.cookiejar.DefaultCookiePolicy.blocked_domains()

DefaultCookiePolicy.blocked_domains() Return the sequence of blocked domains (as a tuple).

http.cookiejar.DefaultCookiePolicy.DomainLiberal

DefaultCookiePolicy.DomainLiberal Equivalent to 0 (ie. all of the above Netscape domain strictness flags switched off).

http.cookiejar.DefaultCookiePolicy.DomainRFC2965Match

DefaultCookiePolicy.DomainRFC2965Match When setting cookies, require a full RFC 2965 domain-match.

http.cookiejar.CookiePolicy.netscape

CookiePolicy.netscape Implement Netscape protocol.

http.cookiejar.CookiePolicy.path_return_ok()

CookiePolicy.path_return_ok(path, request) Return false if cookies should not be returned, given cookie path. See the documentation for domain_return_ok().

http.cookiejar.CookiePolicy.rfc2965

CookiePolicy.rfc2965 Implement RFC 2965 protocol.

http.cookiejar.CookiePolicy.hide_cookie2

CookiePolicy.hide_cookie2 Don’t add Cookie2 header to requests (the presence of this header indicates to the server that we understand RFC 2965 cookies).

http.cookiejar.CookiePolicy.set_ok()

CookiePolicy.set_ok(cookie, request) Return boolean value indicating whether cookie should be accepted from server. cookie is a Cookie instance. request is an object implementing the interface defined by the documentation for CookieJar.extract_cookies().

http.cookiejar.CookiePolicy.return_ok()

CookiePolicy.return_ok(cookie, request) Return boolean value indicating whether cookie should be returned to server. cookie is a Cookie instance. request is an object implementing the interface defined by the documentation for CookieJar.add_cookie_header().