Tokenizer for Set-Cookie
and document.cookie
setter.
var Cookie = require('./index.js'),
cookie = new Cookie('foo=bar;');
cookie.value = 'kitty';
console.log(cookie.serialize()); // Outputs foo=kitty;
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
serialize
[Function] Generate the AST into a string
- Add tokenization for
cookie
request header