On 4/27/07 2:34 PM, "Brian McCallister" <[EMAIL PROTECTED]> wrote:

> We may want to consider not putting table_set and table_get on the
> request, though. It might be better to have a general purpose
> userdata type (metatable) for apr_table_t and put the functions
> there. This would allow for something like:
> 
> function handle(r)
>    r.headers_out['Lua'] = 'Cool'
>    val = r.headers_in['User-Agent']
> end
> 

Here's the patch that does just that.

Ugly, I'm sure.  I know lua now, and I know C.  Still having issues
stitching them together...



-- 
Brian Akins
Chief Operations Engineer
Turner Digital Media Technologies

Attachment: request-table.diff
Description: Binary data

Reply via email to