httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cove...@apache.org
Subject svn commit: r1154265 - /httpd/httpd/trunk/docs/manual/mod/mod_lua.xml
Date Fri, 05 Aug 2011 15:24:20 GMT
Author: covener
Date: Fri Aug  5 15:24:20 2011
New Revision: 1154265

URL: http://svn.apache.org/viewvc?rev=1154265&view=rev
Log:
change the example to work with just AddHandler/SetHandler,
and mention in a comment where the non-default function
name can be specified.

Modified:
    httpd/httpd/trunk/docs/manual/mod/mod_lua.xml

Modified: httpd/httpd/trunk/docs/manual/mod/mod_lua.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_lua.xml?rev=1154265&r1=1154264&r2=1154265&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_lua.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_lua.xml Fri Aug  5 15:24:20 2011
@@ -90,7 +90,12 @@ something like this:</p>
 
 require "string"
 
-function handle_something(r)
+--[[ 
+     This is the default method name for Lua handlers, see the optional 
+     function-name in the LuaMapHandler directive to choose a different 
+     entry point.
+--]]
+function handle(r)
     r.content_type = "text/plain"
     r:puts("Hello Lua World!\n")
 



Mime
View raw message