Create cookie.md

This commit is contained in:
ZhangYu 2017-04-07 10:24:11 +08:00 committed by GitHub
parent 5986d36059
commit 9e33f2efeb

View file

@ -0,0 +1,12 @@
# Cookie Object
* `name` String - cookie 的名称.
* `value` String - cookie 的值.
* `domain` String (optional) - cookie 的域名.
* `hostOnly` Boolean (optional) - cookie 的类型是否为 host-only.
* `path` String (optional) - cookie 的路径.
* `secure` Boolean (optional) - cookie 是否标记为安全.
* `httpOnly` Boolean (optional) - cookie 是否只标记为 HTTP.
* `session` Boolean (optional) - cookie 是否是一个 session cookie, 还是一个带有过期时间的持续 cookie.
* `expirationDate` Double (optional) - cookie 距离 UNIX 时间戳的过期时间,数值为秒。不需要提供给 session
cookies.