Class: Cookie

Cookie

HTTP Cookie
Parameters:
Name Type Description
data String | Object can be a cookie header string or a json object
Source:

Methods

getCookieHeaderString() → {String}

Get cookie as a cookie header string
Source:
Returns:
Type
String

set(data)

Set multiple cookie properties at once
Parameters:
Name Type Description
data String | Object
Source:

toJSON() → {Object}

Get cookie as a JSON object
Source:
Returns:
Type
Object