mirror of
https://github.com/cupcakearmy/koa-cookie.git
synced 2024-12-22 08:06:27 +00:00
Improved Docs
This commit is contained in:
parent
d1ae9205e8
commit
5fbfdb25d7
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"
|
||||||
|
Loading…
Reference in New Issue
Block a user