]> granicus.if.org Git - apache/commitdiff
Add back the parsebody references that were commented out, and elaborate on how r...
authorDaniel Gruno <humbedooh@apache.org>
Wed, 22 Aug 2012 07:37:01 +0000 (07:37 +0000)
committerDaniel Gruno <humbedooh@apache.org>
Wed, 22 Aug 2012 07:37:01 +0000 (07:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1375911 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_lua.xml

index f7de9f29d10b0fc0c9573312f0c0f6f872688d85..f23a6c7d25a9cf290ba8ea7c887a61811c96015e 100644 (file)
@@ -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>