From: Eric Covener Date: Fri, 5 Aug 2011 15:24:20 +0000 (+0000) Subject: change the example to work with just AddHandler/SetHandler, X-Git-Tag: 2.3.15~412 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=19c8816ffdb86a5d2802211aa77b3483e243e5b5;p=apache change the example to work with just AddHandler/SetHandler, and mention in a comment where the non-default function name can be specified. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1154265 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_lua.xml b/docs/manual/mod/mod_lua.xml index ca6068e9d2..2488d1289d 100644 --- a/docs/manual/mod/mod_lua.xml +++ b/docs/manual/mod/mod_lua.xml @@ -90,7 +90,12 @@ something like this:

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")