freon-cookies
Freon plugin to parse and serialize cookies
Installation:
npm install freon-cookies
Usage:
// ... create a Freon application ... app;
Properties added to the request object
cookies: { String : String }
- the cookies sent by the client, parsed
Properties added to the response object
cookies: { String : String }
- the cookies that are to be sent to the clientaddCookie: Function
- adds a cookie to be sentname: String
- the name of the cookie to be sentvalue: String
- the value of the cookie to be sentoptions: Object
- cookie options. For more information, see this
removeCookie: Function
- prevents a cookie from being sent to the clientname: String
- the name of the cookie to remove
removeCookies: Function
- prevents cookies from being sent to the clientnames: ...String
- the names of the cookies to remove
deleteCookie: Function
- deletes a cookie from the clientname: String
- the name of the cookie to delete
deleteCookies: Function
- deletes cookies from the clientnames: ...String
- the names of the cookies to delete