You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by hu...@apache.org on 2012/06/04 13:16:01 UTC
svn commit: r1345917 - /httpd/httpd/trunk/docs/manual/mod/mod_lua.xml
Author: humbedooh
Date: Mon Jun 4 11:16:00 2012
New Revision: 1345917
URL: http://svn.apache.org/viewvc?rev=1345917&view=rev
Log:
Comment out unsupported function calls.
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=1345917&r1=1345916&r2=1345917&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_lua.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_lua.xml Mon Jun 4 11:16:00 2012
@@ -105,13 +105,15 @@ function handle(r)
if r.method == 'GET' then
for k, v in pairs( r:parseargs() ) do
r:puts( string.format("%s: %s\n", k, v) )
- end
+ end<!--
+/* Not supported yet */
elseif r.method == 'POST' then
for k, v in pairs( r:parsebody() ) do
r:puts( string.format("%s: %s\n", k, v) )
end
+-->
else
- r:puts("unknown HTTP method " .. r.method)
+ r:puts("Unsupported HTTP method " .. r.method)
end
end
</highlight>
@@ -339,11 +341,12 @@ end
<highlight language="lua">
r:parseargs() -- returns a lua table containing the request's query string arguments
</highlight>
-
+<!--
+/* Not supported yet */
<highlight language="lua">
- r:parsebody() -- parse the request body as a POST and return a lua table
+ r:parsebody() ‐- parse the request body as a POST and return a lua table
</highlight>
-
+-->
<highlight language="lua">
r:puts("hello", " world", "!") -- print to response body
</highlight>