Iterate-Cookie - Documentation awaiting update! Do not use for reference until further notice.
Tokenizer for Set-Cookie
and document.cookie
setter.
Example:
var Cookie = require('./index.js'),
cookie = new Cookie('foo=bar;');
cookie.value = 'kitty';
console.log(cookie.serialize()); // Outputs foo=kitty;
Parameters:
name
[String] Cookie namevalue
[String] Cookie valuedomain
[String] Domainsecure
[Boolean] Securehttp_only
[Boolean] HttpOnlysame_site
[Boolean] SameSitepath
[String] Pathexpires
[String] Expiresmax_age
[String] Max-Age
Prototype:
serialize
[Function] Generate the AST into a string
Todo:
- Add tokenization for
cookie
request header