From 07581a7dd68a20d845cbde91e69d5324c6f66cc8 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Wed, 17 Oct 2018 11:17:07 +0100 Subject: [PATCH] Tweak to cookie docs --- docs/requests.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/requests.md b/docs/requests.md index 18676dd8..422672c8 100644 --- a/docs/requests.md +++ b/docs/requests.md @@ -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: