var Cookie = exports.Cookie = function(key, value) { ...}
/**
* Set the cookie into the Response headers.
*/
Cookie.prototype.setHeader = function(headers) {
but Jack also has:
=============
Response.prototype.setCookie = function(key, value) { ... }
Response.prototype.deleteCookie // unimplemented
Which implementation should be used to set the cookies ? And how do we
read cookies ? I was looking for a method like: getCookie(key). Is
that missing or is there a better way to do that ?
--
Roberto
--
You received this message because you are subscribed to the Google Groups "nitro-devel" group.
To post to this group, send email to nitro...@googlegroups.com.
To unsubscribe from this group, send email to nitro-devel...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nitro-devel?hl=en.
thanks a lot
--
Roberto
On Mar 8, 6:44 pm, George Moschovitis <george-moschovi...@gmosx.com>
wrote:
> > On Mon, Mar 8, 2010 at 8:25 PM, Roberto Saccon <rsac...@gmail.com> wrote:
>
> >> I need Cookies, and took a look at nitro/cookie.js, which offers:
>
> >> var Cookie = exports.Cookie = function(key, value) { ...}
>
> >> /**
> >> * Set the cookie into the Response headers.
> >> */
> >> Cookie.prototype.setHeader = function(headers) {
>
> >> but Jack also has:
> >> =============
>
> >> Response.prototype.setCookie = function(key, value) { ... }
>
> >> Response.prototype.deleteCookie // unimplemented
>
> >> Which implementation should be used to set the cookies ? And how do we
> >> read cookies ? I was looking for a method like: getCookie(key). Is
> >> that missing or is there a better way to do that ?
>
> >> --
> >> Roberto
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "nitro-devel" group.
> >> To post to this group, send email to nitro...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> nitro-devel...@googlegroups.com<nitro-devel%2Bunsubscribe@googlegr oups.com>