]> granicus.if.org Git - apache/commitdiff
Separate data structure and built in functions, so you can more easily navigate to...
authorDaniel Gruno <humbedooh@apache.org>
Tue, 5 Mar 2013 15:01:39 +0000 (15:01 +0000)
committerDaniel Gruno <humbedooh@apache.org>
Tue, 5 Mar 2013 15:01:39 +0000 (15:01 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1452834 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_lua.xml

index fcb26e539b6dcede77f232289ac02251110b6a9f..8b0c19c7a2c06b769d29903179e1594ce773ad63 100644 (file)
@@ -611,8 +611,12 @@ end
           <td>The IP of the user agent making the request</td>
         </tr>
         </table>
+           </dd>
+    </dl>
+</section>
+<section id="functions"><title>Built in functions</title>
 
-        <p>The request_rec has (at least) the following methods:</p>
+        <p>The request_rec object has (at least) the following methods:</p>
 
         <highlight language="lua">
         r:flush() -- flushes the output buffer
@@ -792,15 +796,15 @@ r:custom_response(status_code, string) -- Construct and set a custom response fo
         </highlight>
 
         <highlight language="lua">
-        r:sleep(number_of_seconds) -- Puts the script to sleep for a given number of seconds.
+r:sleep(number_of_seconds) -- Puts the script to sleep for a given number of seconds.
+                           -- This can be a floating point number like 1.25 for extra accuracy.
         </highlight>
 
         <highlight language="lua">
 r:dbacquire(dbType[, dbParams]) -- Acquires a connection to a database and returns a database class.
                                 -- See '<a href="#databases">Database connectivity</a>' for details.
         </highlight>
-        </dd>
-    </dl>
+
 
 </section>