httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian McCallister <bri...@skife.org>
Subject Re: patch for handling headers_in and headers_out as tables in mod_lua
Date Mon, 02 Mar 2009 14:47:48 GMT


--
Please forgive typos, sent from phone.

On Mar 2, 2009, at 5:34 AM, Brian Akins <brian@akins.org> wrote:

> On 2/28/09 8:37 PM, "Brian McCallister" <brianm@skife.org> wrote:
>
>>> It could be just:
>>>    apr_hash_set(dispatch, "document_root", APR_HASH_KEY_STRING,
>>>                 makefun(&req_content_encoding_field,  
>>> APL_REQ_FUNTYPE_STRING,
>>>                         p));
>>
>
>
> Also, couldn't we build the dispatch has once, and only once, and  
> then just
> associated it with each apache2.request?  This seems more efficient  
> than
> building this array every time.  It would also be nice to use a  
> dispatch
> hash for "setters" as well.

Agreed. I'm thinking we can store the dispatch tables on the server  
conf, that way we can allow them to be modified.

> --Brian
>
>

Mime
View raw message