<th><strong>Description</strong></th>
</tr>
<tr>
+ <td><code>allowoverrides</code></td>
+ <td>string</td>
+ <td>no</td>
+ <td>The AllowOverride options applied to the current request.</td>
+ </tr>
+<tr class="odd">
<td><code>ap_auth_type</code></td>
<td>string</td>
<td>no</td>
<td>If an authentication check was made, this is set to the type
of authentication (f.x. <code>basic</code>)</td>
</tr>
-<tr class="odd">
+<tr>
<td><code>args</code></td>
<td>string</td>
<td>yes</td>
<td>The query string arguments extracted from the request
(f.x. <code>foo=bar&name=johnsmith</code>)</td>
</tr>
-<tr>
+<tr class="odd">
<td><code>assbackwards</code></td>
<td>boolean</td>
<td>no</td>
<td>Set to true if this is an HTTP/0.9 style request
(e.g. <code>GET /foo</code> (with no headers) )</td>
</tr>
+<tr>
+ <td><code>auth_name</code></td>
+ <td>string</td>
+ <td>no</td>
+ <td>The realm name used for authorization (if applicable).</td>
+ </tr>
+<tr class="odd">
+ <td><code>banner</code></td>
+ <td>string</td>
+ <td>no</td>
+ <td>The server banner, f.x. <code>Apache HTTP Server/2.4.3 openssl/0.9.8c</code></td>
+ </tr>
+<tr>
+ <td><code>basic_auth_pw</code></td>
+ <td>string</td>
+ <td>no</td>
+ <td>The basic auth password sent with this request, if any</td>
+ </tr>
<tr class="odd">
<td><code>canonical_filename</code></td>
<td>string</td>
<td>no</td>
<td>Whether or not this request is done via HTTPS</td>
</tr>
+<tr>
+ <td><code>is_initial_req</code></td>
+ <td>boolean</td>
+ <td>no</td>
+ <td>Whether this request is the initial request or a sub-request</td>
+ </tr>
+<tr class="odd">
+ <td><code>limit_req_body</code></td>
+ <td>number</td>
+ <td>no</td>
+ <td>The size limit of the request body for this request, or 0 if no limit.</td>
+ </tr>
<tr>
<td><code>log_id</code></td>
<td>string</td>
<td>A list of notes that can be passed on from one module to another.</td>
</tr>
<tr class="odd">
+ <td><code>options</code></td>
+ <td>string</td>
+ <td>no</td>
+ <td>The Options directive applied to the current request.</td>
+ </tr>
+<tr>
<td><code>path_info</code></td>
<td>string</td>
<td>no</td>
<td>The PATH_INFO extracted from this request.</td>
</tr>
+<tr class="odd">
+ <td><code>port</code></td>
+ <td>number</td>
+ <td>no</td>
+ <td>The server port used by the request.</td>
+ </tr>
<tr>
<td><code>protocol</code></td>
<td>string</td>
<td>no</td>
<td>The contents of the <code>Range:</code> header.</td>
</tr>
+<tr class="odd">
+ <td><code>remaining</code></td>
+ <td>number</td>
+ <td>no</td>
+ <td>The number of bytes remaining to be read from the request body.</td>
+ </tr>
+<tr>
+ <td><code>server_built</code></td>
+ <td>string</td>
+ <td>no</td>
+ <td>The time the server executable was built.</td>
+ </tr>
+<tr class="odd">
+ <td><code>server_name</code></td>
+ <td>string</td>
+ <td>no</td>
+ <td>The server name for this request.</td>
+ </tr>
+<tr>
+ <td><code>some_auth_required</code></td>
+ <td>boolean</td>
+ <td>no</td>
+ <td>Whether some authorization is/was required for this request.</td>
+ </tr>
<tr class="odd">
<td><code>subprocess_env</code></td>
<td>table</td>
<td>The environment variables set for this request.</td>
</tr>
<tr>
+ <td><code>started</code></td>
+ <td>number</td>
+ <td>no</td>
+ <td>The time the server was (re)started, in seconds since the epoch (Jan 1st, 1970)</td>
+ </tr>
+<tr class="odd">
<td><code>status</code></td>
<td>number</td>
<td>yes</td>
<td>The (current) HTTP return code for this request, f.x. <code>200</code> or <code>404</code>.</td>
</tr>
-<tr class="odd">
+<tr>
<td><code>the_request</code></td>
<td>string</td>
<td>no</td>
<td>The request string as sent by the client, f.x. <code>GET /foo/bar HTTP/1.1</code>.</td>
</tr>
-<tr>
+<tr class="odd">
<td><code>unparsed_uri</code></td>
<td>string</td>
<td>no</td>
<td>The unparsed URI of the request</td>
</tr>
-<tr class="odd">
+<tr>
<td><code>uri</code></td>
<td>string</td>
<td>yes</td>
<td>The URI after it has been parsed by httpd</td>
</tr>
-<tr>
+<tr class="odd">
<td><code>user</code></td>
<td>string</td>
<td>yes</td>
<td>If an authentication check has been made, this is set to the name of the authenticated user.</td>
</tr>
-<tr class="odd">
+<tr>
<td><code>useragent_ip</code></td>
<td>string</td>
<td>no</td>
<p>The request_rec has (at least) the following methods:</p>
+ <pre class="prettyprint lang-lua">
+ r:flush() -- flushes the output buffer
+ </pre>
+
+
<pre class="prettyprint lang-lua">
r:addoutputfilter(name|function) -- add an output filter
</pre>
+ <pre class="prettyprint lang-lua">
+ r:sendfile(filename) -- sends an entire file to the client, using sendfile if supported by the current platform
+ </pre>
+
+
<pre class="prettyprint lang-lua">
r:parseargs() -- returns a Lua table containing the request's query string arguments
</pre>