Return request cookies. A read-only dictionary-like object.
(self)
| 265 | |
| 266 | @reify |
| 267 | def cookies(self): |
| 268 | """Return request cookies. |
| 269 | |
| 270 | A read-only dictionary-like object. |
| 271 | """ |
| 272 | raw = self.headers.get(hdrs.COOKIE, '') |
| 273 | parsed = http.cookies.SimpleCookie(raw) |
| 274 | return MappingProxyType( |
| 275 | {key: val.value for key, val in parsed.items()}) |
| 276 | |
| 277 | @property |
| 278 | def payload(self): |