httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1375911 - /httpd/httpd/branches/2.4.x/docs/manual/mod/mod_lua.xml
Date Wed, 22 Aug 2012 07:37:01 GMT
Author: humbedooh
Date: Wed Aug 22 07:37:01 2012
New Revision: 1375911

URL: http://svn.apache.org/viewvc?rev=1375911&view=rev
Log:
Add back the parsebody references that were commented out, and elaborate on how r:parsebody()
works

Modified:
    httpd/httpd/branches/2.4.x/docs/manual/mod/mod_lua.xml

Modified: httpd/httpd/branches/2.4.x/docs/manual/mod/mod_lua.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/mod/mod_lua.xml?rev=1375911&r1=1375910&r2=1375911&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/mod/mod_lua.xml (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/mod/mod_lua.xml Wed Aug 22 07:37:01 2012
@@ -105,13 +105,11 @@ 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<!--
-/* Not supported yet */
+        end
     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("Unsupported HTTP method " .. r.method)
     end
@@ -415,12 +413,11 @@ 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() &dash;- parse the request body as a POST and return  a lua table
+        r:parsebody([sizeLimit]) -- parse the request body as a POST and return  a lua table.
+                                 -- An optional number may be passed to specify the maximum
number 
+                                 -- of bytes to parse. Default is 8192 bytes.
         </highlight>
--->
         <highlight language="lua">
         r:puts("hello", " world", "!") -- print to response body
         </highlight>



Mime
View raw message