httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <>
Subject Re: [apreq-2] cookie value as opaque string
Date Mon, 18 Nov 2002 17:52:53 GMT
Joe Schaefer wrote:
> For apreq-2 I'm considering a change to the apreq_cookie_t
> struct.  Instead of parsing a cookie's value(s) into
> an apr_array, I think it may be better to treat the cookie
> value(s) as an encoded character string with get/set
> accessors (ie function pointers).  In other words, just
> leave the cookie's value unparsed until someone actually 
> wants it.
> The reason I'm not satisfied with our current cookie code 
> is that our encoding/decoding stuff is not based on standards,
> but rather on (very common) conventions- the same conventions 
> used in perl's CGI::Cookie module.  However, I'd rather make the 
> apreq_cookie_t struct flexible enough to support other 
> value-encoding(/decoding) schemes, and have apreq_cookie just 
> treat our current stuff as the default encoding/decoding.
> Is this idea worth pursuing, or not?

+1 on the concept!

Stas Bekman             JAm_pH      --   Just Another mod_perl Hacker      mod_perl Guide

View raw message