From 19c8816ffdb86a5d2802211aa77b3483e243e5b5 Mon Sep 17 00:00:00 2001 From: Eric Covener Date: Fri, 5 Aug 2011 15:24:20 +0000 Subject: [PATCH] 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 --- docs/manual/mod/mod_lua.xml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/manual/mod/mod_lua.xml b/docs/manual/mod/mod_lua.xml index ca6068e9d2d..2488d1289d5 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") -- 2.47.2