Tweak to cookie docs

This commit is contained in:
Tom Christie 2018-10-17 11:17:07 +01:00
parent 4dedf7ce96
commit 07581a7dd6
1 changed files with 1 additions and 5 deletions

View File

@ -57,14 +57,10 @@ For example: `request.query_params['abc']`
#### Cookies
Cookies are exposed as an immutable dict.
**Note**: Exception `KeyError` will be raised if nonexistant key is accessed as `request.cookies['key']`.
Instead cookies should be accessed with the `.get` method.
Cookies are exposed as a regular dictionary interface.
For example: `request.cookies.get('mycookie')`
#### Body
There are a few different interfaces for returning the body of the request: