mirror of
https://github.com/cupcakearmy/koa-cookie.git
synced 2025-09-05 14:50:41 +00:00
Improved Docs
This commit is contained in:
11
README.md
11
README.md
@@ -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"
|
||||||
|
Reference in New Issue
Block a user