httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Poirier <>
Subject Re: Reducing number of mod_lua hook directives
Date Wed, 12 May 2010 02:12:43 GMT
On 2010-05-11 at 12:55, HyperHacker <> wrote:
> On Tue, May 11, 2010 at 08:47, Dan Poirier <> wrote:
>> I just thought of a problem - right now, the funcname is optional
>> (defaults to "handle").  I hate having optional arguments that don't
>> come at the end.  I'd just as soon make it a required argument, but if
>> people would rather it stay optional, then I'd rather leave it at the
>> end.   What do folks prefer?
> I'd go for making it required, but is there a reason you have to
> specify a function? Lua scripts usually start executing from the first
> line in the file. It seems to me to make more sense to do that if a
> function is not specified (or is "-" if it's a required argument).

The request object is passed to the function as an argument, so there
would have to be some other way to give the Lua code access to the

View raw message