MCPcopy Index your code
hub / github.com/RustPython/RustPython / _process_rfc2109_cookies

Method _process_rfc2109_cookies

Lib/http/cookiejar.py:1588–1598  ·  view source on GitHub ↗
(self, cookies)

Source from the content-addressed store, hash-verified

1586 return cookies
1587
1588 def _process_rfc2109_cookies(self, cookies):
1589 rfc2109_as_ns = getattr(self._policy, 'rfc2109_as_netscape', None)
1590 if rfc2109_as_ns is None:
1591 rfc2109_as_ns = not self._policy.rfc2965
1592 for cookie in cookies:
1593 if cookie.version == 1:
1594 cookie.rfc2109 = True
1595 if rfc2109_as_ns:
1596 # treat 2109 cookies as Netscape cookies rather than
1597 # as RFC2965 cookies
1598 cookie.version = 0
1599
1600 def make_cookies(self, response, request):
1601 """Return sequence of Cookie objects extracted from response object."""

Callers 1

make_cookiesMethod · 0.95

Calls 1

getattrFunction · 0.85

Tested by

no test coverage detected