MCPcopy Create free account
hub / github.com/datapane/datapane / cookies

Method cookies

python-client/src/datapane/_vendor/bottle.py:1199–1203  ·  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

1197
1198 @DictProperty('environ', 'bottle.request.cookies', read_only=True)
1199 def cookies(self):
1200 """ Cookies parsed into a :class:`FormsDict`. Signed cookies are NOT
1201 decoded. Use :meth:`get_cookie` if you expect signed cookies. """
1202 cookies = SimpleCookie(self.environ.get('HTTP_COOKIE', '')).values()
1203 return FormsDict((c.key, c.value) for c in cookies)
1204
1205 def get_cookie(self, key, default=None, secret=None, digestmod=hashlib.sha256):
1206 """ 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