New request.cookies property

This commit is contained in:
Simon Willison 2020-06-02 14:06:53 -07:00
commit 1d0bea157a
3 changed files with 12 additions and 7 deletions

View file

@ -27,6 +27,9 @@ The request object is passed to various plugin hooks. It represents an incoming
``.headers`` - dictionary (str -> str)
A dictionary of incoming HTTP request headers.
``.cookies`` - dictionary (str -> str)
A dictionary of incoming cookies
``.host`` - string
The host header from the incoming request, e.g. ``latest.datasette.io`` or ``localhost``.