On 15 Jul 2001 08:23:06 -0700, Brian Pane wrote:
> How about just turning request_rec->notes into an apr_hash_t?
> The apr_hash_t code doesn't mind non-text keys or values.
> I actually tried this in my local code base yesterday while
> experimenting with hash-table-based structures for the
> HTTP request and response headers, and the required changes
> to the httpd and standard modules were relatively minor (not
> many things depend on request_rec->notes).

sounds good to me.
and will definatly remove all the
apr_table_setn(r->notes,"edition",sprintf("%d",value))

code I have ;-)
> 
> --Brian
> 
> Ian Holsman wrote:
> 
> >hi.
> >I've been busy coding some modules for internal work, and have found the
> >need to be able store non-string data types in the request_rec
> >structure.
> >
> >any reason why we shouldn't have a hash table in the record?
> >
> >I think alot of other people will hit this problem when the develop
> >custom SSI tags which could get called multiple times on a page and need
> >to cache info from the first call.
> >
> >..Ian
> >(or is there a better way?)
> >
> >--
> >Ian Holsman
> >Performance Measurement & Analysis
> >CNET Networks    -    415 364-8608
> >
> >
> 
> 
--
Ian Holsman
Performance Measurement & Analysis
CNET Networks    -    415 364-8608

Reply via email to