httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1477002 - in /httpd/httpd/branches/2.4.x/docs/manual/mod: mod_lua.html.en mod_lua.xml.fr mod_lua.xml.meta
Date Mon, 29 Apr 2013 12:32:56 GMT
Author: humbedooh
Date: Mon Apr 29 12:32:55 2013
New Revision: 1477002

URL: http://svn.apache.org/r1477002
Log:
xforms

Modified:
    httpd/httpd/branches/2.4.x/docs/manual/mod/mod_lua.html.en
    httpd/httpd/branches/2.4.x/docs/manual/mod/mod_lua.xml.fr
    httpd/httpd/branches/2.4.x/docs/manual/mod/mod_lua.xml.meta

Modified: httpd/httpd/branches/2.4.x/docs/manual/mod/mod_lua.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/mod/mod_lua.html.en?rev=1477002&r1=1477001&r2=1477002&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/mod/mod_lua.html.en (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/mod/mod_lua.html.en Mon Apr 29 12:32:55 2013
@@ -449,14 +449,23 @@ end
 
 
         <pre class="prettyprint lang-lua">
-        r:parseargs() -- returns a lua table containing the request's query string arguments
-        </pre>
+r:parseargs() -- returns two tables; one standard key/value table for regular GET data, 
+              -- and one for multi-value data (fx. foo=1&amp;foo=2&amp;foo=3):
 
-        <pre class="prettyprint lang-lua">
-r:parsebody([sizeLimit]) -- parse the request body as a POST and return  a lua table.
+local GET, GETMULTI = r:parseargs()
+r:puts("Your name is: " .. GET['name'] or "Unknown")
+</pre>
+
+
+<pre class="prettyprint lang-lua">
+r:parsebody([sizeLimit]) -- parse the request body as a POST and return two lua tables,
+                         -- just like r:parseargs().
                          -- An optional number may be passed to specify the maximum number

-                         -- of bytes to parse. Default is 8192 bytes.
-        </pre>
+                         -- of bytes to parse. Default is 8192 bytes:
+                 
+local POST, POSTMULTI = r:parsebody(1024*1024)
+r:puts("Your name is: " .. POST['name'] or "Unknown")
+</pre>
 
         <pre class="prettyprint lang-lua">
         r:puts("hello", " world", "!") -- print to response body

Modified: httpd/httpd/branches/2.4.x/docs/manual/mod/mod_lua.xml.fr
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/mod/mod_lua.xml.fr?rev=1477002&r1=1477001&r2=1477002&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/mod/mod_lua.xml.fr (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/mod/mod_lua.xml.fr Mon Apr 29 12:32:55 2013
@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
 <!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.fr.xsl"?>
-<!-- English Revision : 1442083 -->
+<!-- English Revision: 1442083:1477001 (outdated) -->
 <!-- French translation : Lucien GENTIS -->
 <!-- Reviewed by : Vincent Deffontaines -->
 

Modified: httpd/httpd/branches/2.4.x/docs/manual/mod/mod_lua.xml.meta
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/mod/mod_lua.xml.meta?rev=1477002&r1=1477001&r2=1477002&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/mod/mod_lua.xml.meta (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/mod/mod_lua.xml.meta Mon Apr 29 12:32:55 2013
@@ -8,6 +8,6 @@
 
   <variants>
     <variant>en</variant>
-    <variant>fr</variant>
+    <variant outdated="yes">fr</variant>
   </variants>
 </metafile>



Mime
View raw message