MCPcopy Index your code
hub / github.com/fluentpython/example-code-2e / cookies

Method cookies

21-async/mojifinder/bottle.py:1054–1058  ·  view source on GitHub ↗

Cookies parsed into a :class:`FormsDict`. Signed cookies are NOT decoded. Use :meth:`get_cookie` if you expect signed cookies.

(self)

Source from the content-addressed store, hash-verified

1052
1053 @DictProperty('environ', 'bottle.request.cookies', read_only=True)
1054 def cookies(self):
1055 """ Cookies parsed into a :class:`FormsDict`. Signed cookies are NOT
1056 decoded. Use :meth:`get_cookie` if you expect signed cookies. """
1057 cookies = SimpleCookie(self.environ.get('HTTP_COOKIE','')).values()
1058 return FormsDict((c.key, c.value) for c in cookies)
1059
1060 def get_cookie(self, key, default=None, secret=None):
1061 """ Return the content of a cookie. To read a `Signed Cookie`, the

Callers

nothing calls this directly

Calls 3

FormsDictClass · 0.85
valuesMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected