Improved Docs

This commit is contained in:
nicco 2017-08-18 19:50:42 +02:00
parent d1ae9205e8
commit 5fbfdb25d7

View File

@ -61,6 +61,17 @@ c.request.cookie.set({
secure: false secure: false
}) })
``` ```
|Options | Value |
|--------| -------------------------------|
|Key | Cookie Name |
|Value | Cookie Value |
|Path | Url Path |
|Domain | Sub or Domain |
|httpOnly| bool |
|secure | bool |
|max-age | seconds after the cookie expres|
```javascript ```javascript
// Get a cookie // Get a cookie
ctx.request.cookie.get('my_id') => "12345678" ctx.request.cookie.get('my_id') => "12345678"