Re: Ideas for an output filter for mod_lua

2012-08-24 Thread Daniel Gruno
On 08/23/2012 11:32 PM, Tim Bannister wrote: > On 23 Aug 2012, at 11:45, Daniel Gruno wrote: >> On 08/23/2012 12:02 AM, Tim Bannister wrote: > My patch is for implementing gzip compression by httpd, not decompression, > but the code will look pretty similar. > > That's quite neat, then. I will t

Re: Ideas for an output filter for mod_lua

2012-08-23 Thread Roy T. Fielding
On Aug 23, 2012, at 2:49 PM, Nick Kew wrote: > On Thu, 23 Aug 2012 22:32:20 +0100 > Tim Bannister wrote: > > >> That's quite neat, then. I will try to make an actual implementation in Lua. >> The part I found difficult was the interaction with the second >> transfer-encoding, “chunked”. Using

Re: Ideas for an output filter for mod_lua

2012-08-23 Thread Nick Kew
On Thu, 23 Aug 2012 22:32:20 +0100 Tim Bannister wrote: > That's quite neat, then. I will try to make an actual implementation in Lua. > The part I found difficult was the interaction with the second > transfer-encoding, “chunked”. Using gzip Transfer-Encoding: implies using > chunked, because

Re: Ideas for an output filter for mod_lua

2012-08-23 Thread Tim Bannister
On 23 Aug 2012, at 11:45, Daniel Gruno wrote: > On 08/23/2012 12:02 AM, Tim Bannister wrote: >> >> I don't know if this is another way of phrasing Nick's question or not, but >> would I be able to implement gzip Transfer-Encoding: just using Lua and this >> new directive? >> >> I found (bug 52

Re: Ideas for an output filter for mod_lua

2012-08-23 Thread Daniel Gruno
On 08/23/2012 12:02 AM, Tim Bannister wrote: > On 22 Aug 2012, at 22:25, Daniel Gruno wrote: > >>> Would your concept meaningfully generalise beyond application-level filters? >> >> I'm not entirely sure what you mean by this, could you elaborate? >> If you want some more sophisticated examples o

Re: Ideas for an output filter for mod_lua

2012-08-22 Thread Tim Bannister
On 22 Aug 2012, at 22:25, Daniel Gruno wrote: >> Would your concept meaningfully generalise beyond application-level filters? > > I'm not entirely sure what you mean by this, could you elaborate? > If you want some more sophisticated examples of what could be achieved with > Lua filtering, I'd

Re: Ideas for an output filter for mod_lua

2012-08-22 Thread Daniel Gruno
On 08/22/2012 01:36 PM, Nick Kew wrote: > > Basic concept looks fine. I guess we'd need more detail > to say any more about it. > > Is the implementation 'clean' or does it involve hacks to core? > If what you have is pure module then I'd see no reason > not to drop mod_lua_filter (or is it mod_

Re: Ideas for an output filter for mod_lua

2012-08-22 Thread Nick Kew
On 22 Aug 2012, at 12:00, Daniel Gruno wrote: > So, any feedback, comments, thoughts on this? Basic concept looks fine. I guess we'd need more detail to say any more about it. Is the implementation 'clean' or does it involve hacks to core? If what you have is pure module then I'd see no reason

Ideas for an output filter for mod_lua

2012-08-22 Thread Daniel Gruno
Hi dev@, I've been wondering (and tinkering with) the idea of creating output filters through mod_lua. If this has already been discussed, it was before my time here, so please forgive any redundant ideas. Essentially, what I'd like to do is be able to do the following: LuaOutputFilter myTestFilt