Re: Additional core functions for mod_lua

2012-08-07 Thread zhiguo zhao
I write a mod_luaex[ https://github.com/zhaozg/mod_luaex ] to extends mod_lua, it support session, dbd, filter and other, so more flexible. It use apreq, lua-apr[ https://github.com/zhaozg/lua-apr ],and merge function from http://people.apache.org/~humbedooh/lua_ap/. 2012/8/6 Daniel Gruno

Re: Additional core functions for mod_lua

2012-08-06 Thread Daniel Gruno
On 08/06/2012 12:17 AM, Stefan Fritsch wrote: Nice work. If you talk about the existing apache2 library, you mean it is existing in mod_lua? Or is it an external file? I meant the apache2 table we already have in place for return codes. Either that or we create a new table/library to hold

Re: Additional core functions for mod_lua

2012-08-06 Thread Daniel Gruno
If no one objects, I'll start moving in some functions to the mod_lua core, starting with the ones that pertain to obtaining a static value from the request/server, as well as the flush and sendfile function, and making them part of the request_rec package. This includes the following (as they

Re: Additional core functions for mod_lua

2012-08-05 Thread Daniel Gruno
On 08/03/2012 04:51 PM, Igor Galić wrote: I cannot seem to be able to find this stuff… I have put together some of the scripts I use myself at http://httpd.apache.org/docs/trunk/developer/lua.html but it's far from done (and thus not linked to from any index page). Most of the scripts are

Re: Additional core functions for mod_lua

2012-08-05 Thread Stefan Fritsch
On Sunday 05 August 2012, Daniel Gruno wrote: On 08/03/2012 04:51 PM, Igor Galić wrote: I cannot seem to be able to find this stuff… I have put together some of the scripts I use myself at http://httpd.apache.org/docs/trunk/developer/lua.html but it's far from done (and thus not linked to

Re: Additional core functions for mod_lua

2012-08-05 Thread Daniel Gruno
On 08/06/2012 12:17 AM, Stefan Fritsch wrote: On Sunday 05 August 2012, Daniel Gruno wrote: On 08/03/2012 04:51 PM, Igor Galić wrote: I cannot seem to be able to find this stuff… I have put together some of the scripts I use myself at http://httpd.apache.org/docs/trunk/developer/lua.html but

Re: Additional core functions for mod_lua

2012-08-03 Thread Eric Covener
On Thu, Aug 2, 2012 at 7:40 AM, Daniel Gruno rum...@cord.dk wrote: Hi dev@, I've gotten my paws all over mod_lua as of late, trying to find ways to expand the module to be more useful. In doing so, I have created a small library which binds several httpd core functions (and some from apr) to

Re: Additional core functions for mod_lua

2012-08-03 Thread Igor Galić
- Original Message - Hi dev@, I've gotten my paws all over mod_lua as of late, trying to find ways to expand the module to be more useful. In doing so, I have created a small library which binds several httpd core functions (and some from apr) to Lua, so as to both gain more

Re: Additional core functions for mod_lua

2012-08-03 Thread Daniel Gruno
On 08/03/2012 04:51 PM, Igor Galić wrote: Right now, is your library meant to be linked with mod_lua or does it work with LoadFile? It's a Lua library, so it doesn't involve httpd per se. It would be included by mod_lua (or rather, by Lua) by writing the following in your script: local