Create cookie.md
This commit is contained in:
parent
5986d36059
commit
9e33f2efeb
1 changed files with 12 additions and 0 deletions
12
docs-translations/zh-CN/api/structures/cookie.md
Normal file
12
docs-translations/zh-CN/api/structures/cookie.md
Normal 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.
|
Loading…
Reference in a new issue