Improved Docs

This commit is contained in:
nicco 2017-08-18 19:50:42 +02:00
parent d1ae9205e8
commit 5fbfdb25d7
1 changed files with 11 additions and 0 deletions

View File

@ -61,6 +61,17 @@ c.request.cookie.set({
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
// Get a cookie
ctx.request.cookie.get('my_id') => "12345678"