From f7c358c71f8c8ea83cc5caddac4b66c3c1a79238 Mon Sep 17 00:00:00 2001
From: Daniel Gruno
apache2.base64_encode
apache2.base64_decode
@@ -451,6 +455,7 @@ LuaMaphandler ^/portal/([a-z]+)/ /path/to/lua/script.lua handle_$1
apache2.escape_logitem
+
Arguments:
-
+
Argument | @@ -476,7 +481,6 @@ Decodes a base64-encoded stringThe string to decode |
---|
Return value(s):
@@ -484,15 +488,13 @@ The base64-decoded string.
Example:
-
+
Â
Arguments:
-
+
Argument | @@ -519,18 +521,15 @@ Encodes a string using the base64 encoding scheme.The string to encode |
---|
Example:
-
+
Â
Arguments:
-
+
Argument | @@ -557,7 +556,6 @@ url-escapes a stringThe string to escape |
---|
Return value(s):
@@ -565,15 +563,13 @@ The URL-escaped string.
Example:
-
+
Â
Arguments:
-
+
Argument | @@ -600,14 +596,12 @@ Escape a string for loggingThe string to escape |
---|
Return value(s):
The converted string
Â
Arguments:
-
+
Argument | @@ -638,7 +632,6 @@ Escapes HTML entities.Whether to escape all non-ASCI characters as &#nnn; |
---|
Return value(s):
@@ -646,15 +639,13 @@ The escaped HTML code.
Example:
-
+
Â
Arguments:
-
+
Argument | @@ -681,7 +672,6 @@ Computes an MD5 digest sum based on a string (binary safe)The (binary) string to digest |
---|
Return value(s):
@@ -689,15 +679,13 @@ The MD5 digest sum of the data provided
Example:
-
+
Â
Arguments:
-
+
Argument | @@ -728,7 +716,6 @@ convert an OS path to a URL in an OS dependant way.partial if set, assume that the path will be appended to something with a '/' in it (and thus does not prefix "./") |
---|
Return value(s):
@@ -736,13 +723,11 @@ The converted URL
Example:
-
+
Â
Arguments:
-
+
Argument | @@ -769,7 +754,6 @@ Computes an SHA-1 digest sum based on a string (binary safe)The (binary) string to digest |
---|
Return value(s):
@@ -777,15 +761,13 @@ The SHA-1 digest sum of the data provided
Example:
-
+
Â
Arguments:
-
+
Argument | @@ -812,7 +794,6 @@ unescapes an URL-escaped stringThe string to unescape |
---|
Return value(s):
@@ -820,20 +801,19 @@ The URL-unescaped string
Example:
-
+
Â
apache2.sendfile
apache2.port
@@ -884,6 +864,7 @@ print(unescaped) -- prints "This is a test"
apache2.satisfies
+
Arguments:
-
+
Argument | @@ -909,16 +890,13 @@ Adds an input filter to the requestThe name of the filter handler to add |
---|
Example:
-
+
Â
Arguments:
-
+
Argument | @@ -945,16 +923,13 @@ Adds an output filter to the requestThe name of the filter handler to add |
---|
Example:
-
+
Â
Arguments:
-
+
Argument | @@ -977,7 +952,6 @@ Returns the currently allowed overrides for this context (AuthCfg, Options etc)The mod_lua request handle |
---|
Return value(s):
@@ -985,16 +959,14 @@ The currently allowed overrides for this context (AuthCfg, Options etc)
Example:
-
+
Â
Arguments:
-
+
Argument | @@ -1017,14 +989,12 @@ Returns the current Authorization realmThe mod_lua request handle |
---|
Return value(s):
The current authorization realm
Â
Arguments:
-
+
Argument | @@ -1047,14 +1017,12 @@ Returns the current authentication type used in the requestThe mod_lua request handle |
---|
Return value(s):
The current Authorization type used in the request
Â
Arguments:
-
+
Argument | @@ -1077,9 +1045,7 @@ Get the context_document_root for a request. This is a generalization of the docThe mod_lua request handle |
---|
Â
Arguments:
-
+
Argument | @@ -1102,9 +1068,7 @@ Get the context_prefix for a request. The context_prefix URI prefix maps to theThe mod_lua request handle |
---|
Â
Arguments:
-
+
Argument | @@ -1127,17 +1091,14 @@ Flushes the content buffer, writing everything to the client immediately.The mod_lua request handle |
---|
Example:
-
+
Â
Arguments:
-
+
Argument | @@ -1160,14 +1121,12 @@ Returns the password from a basic authorization request or nil if none was supplThe mod_lua request handle |
---|
Return value(s):
The password from a basic authorization request or nil if none was supplied
Â
Arguments:
-
+
Argument | @@ -1190,7 +1149,6 @@ Returns the current request body size limitThe mod_lua request handle |
---|
Return value(s):
@@ -1198,14 +1156,12 @@ The current request body size limit
Example:
-
+
Â
Arguments:
-
- None
None
Return value(s):
@@ -1227,14 +1182,12 @@ The server name
Example:
-
+
Â
Arguments:
-
+
Argument | @@ -1261,7 +1214,6 @@ Returns the value of an environment variablekey |
---|
Return value(s):
@@ -1269,16 +1221,14 @@ The queried value
Example:
-
+
Â
Arguments:
-
+
Argument | @@ -1305,14 +1255,12 @@ Constructs an entity tag from the resource information. If it's a real file, buforce_weak Force the entity tag to be weak - it could be modified again in as short an interval. |
---|
Return value(s):
The entity tag
Â
Arguments:
-
+
Argument | @@ -1335,7 +1283,6 @@ Returns the currently allowed options for this context (Indexes, MultiViews etc)The mod_lua request handle |
---|
Return value(s):
@@ -1343,16 +1290,14 @@ The currently allowed options for this context.
Example:
-
+
Â
Arguments:
-
+
Argument | @@ -1375,7 +1320,6 @@ Returns the port currently being used by the requestThe mod_lua request handle |
---|
Return value(s):
@@ -1383,14 +1327,12 @@ The current port used by the request
Example:
-
+
Â
Arguments:
-
+
Argument | @@ -1413,7 +1355,6 @@ Returns true if the request has a body(POST/PUT), false otherwiseThe mod_lua request handle |
---|
Return value(s):
@@ -1421,15 +1362,13 @@ True if the request has a body(POST/PUT), false otherwise
Example:
-
+
Â
Arguments:
-
+
Argument | @@ -1456,7 +1395,6 @@ Reads the request body. If a filename is specified, the request body will be wrifilename |
---|
Return value(s):
@@ -1464,7 +1402,7 @@ The number of bytes written if a filename was specified, otherwise it returns th
Example:
-
+
Â
Arguments:
-
+
Argument | @@ -1499,7 +1435,6 @@ Returns how the requires lines must be met.The mod_lua request handle |
---|
Return value(s):
@@ -1507,16 +1442,14 @@ How the requirements must be met (SATISFY_ANY, SATISFY_ALL, SATISFY_NOSPEC).
Example:
-
+
Â
Arguments:
-
+
Argument | @@ -1543,16 +1476,13 @@ Sends an interim (HTTP 1xx) response immediately.send_headers Whether to send&clear headers in r->headers_out |
---|
Example:
-
+
Â
Arguments:
-
+
Argument | @@ -1579,16 +1509,13 @@ Sends a file to the client via sendfile() if possible.The file to send |
---|
Example:
-
+
Â
Arguments:
-
+
Argument | @@ -1619,9 +1546,7 @@ Set context_prefix and context_document_root for a request.The corresponding directory on disk, without trailing slash |
---|
Â
Arguments:
-
+
Argument | @@ -1648,19 +1573,16 @@ Sets the document root of the request.root |
---|
Example:
-
+
Â
Arguments:
-
+
Argument | @@ -1683,14 +1605,12 @@ Sets the keepalive status for this requestThe mod_lua request handle |
---|
Return value(s):
True if keepalive can be set, false otherwise
Â
Arguments:
-
+
Argument | @@ -1721,16 +1641,13 @@ Sets the value of an environment variableval |
---|
Example:
-
+
Â
Arguments:
-
+
Argument | @@ -1753,7 +1670,6 @@ Returns true if authorization is required for this requestThe mod_lua request handle |
---|
Return value(s):
@@ -1761,26 +1677,26 @@ True if auth is required, false if not.
Example:
-
+
Â
apache2.expr
apache2.regex
apache2.strcmp_match
+
Arguments:
-
+
Argument | @@ -1806,7 +1722,6 @@ Evaluates an ap_expr (think <If ...>) expression and returns true if the eexpression |
---|
Return value(s):
@@ -1814,15 +1729,13 @@ True if the expression evaluates as true, false if the expression doesn't evalua
Example:
-
+
Â
Arguments:
-
+
Argument | @@ -1853,7 +1766,6 @@ Evaluates a regular expression and, if it matches the source string, captures ththe source string to capture from |
---|
Return value(s):
@@ -1861,16 +1773,14 @@ True if the expression evaluates as true, false if the expression doesn't evalua
Example:
-
+
Â
Arguments:
-
+
Argument | @@ -1901,7 +1811,6 @@ Determines if a string matches a pattern containing the wildcards '?' or '*'Whether to ignore case when matching |
---|
Return value(s):
@@ -1909,20 +1818,19 @@ True if the two strings match, false otherwise.
Example:
-
+
Â
apache2.add_version_component
apache2.banner
@@ -1955,6 +1863,7 @@ end
apache2.exists_config_define
+
Arguments:
-
+
Argument | @@ -1980,18 +1889,15 @@ Adds a component to the server description and banner stringsThe component to add |
---|
Example:
-
+
Â
Arguments:
-
+
Argument | @@ -2043,16 +1947,13 @@ Install a custom response handler for a given statusThe custom response. This can be a static string, a file or a URL |
---|
Example:
-
+
Â
Arguments:
-
+
Argument | @@ -2075,18 +1976,15 @@ Checks for a definition from the server command lineThe define to check for |
---|
Example:
-
+
Â
Arguments:
-
- None
None
Return value(s):
The date the server was built
Â
Arguments:
-
+
Argument | @@ -2130,14 +2026,12 @@ Returns true if this is the main request, false if it is a sub-requestThe mod_lua request handle |
---|
Return value(s):
True if this is the main request, false if it is a sub-request
Â
Arguments:
-
- None
None
Return value(s):
A table containing the name (c filename) of all loaded modules
Â
Arguments:
-
+
Argument | @@ -2185,14 +2077,12 @@ Returns information about a specific module (if loaded)file |
---|
Return value(s):
The various commands available to this module as a table, or nil if the module wasn't found.
Â
Arguments:
-
+
Argument | @@ -2215,14 +2105,12 @@ Queries the MPM for a specific valuei |
---|
Return value(s):
The queried value
Â
Arguments:
-
+
Argument | @@ -2249,14 +2137,12 @@ Returns the path of a file relative to the default runtime directoryfile |
---|
Return value(s):
The path of a file relative to the default runtime directory
Â
Arguments:
-
+
Argument | @@ -2283,14 +2169,12 @@ Returns the scoreboard for a server daemon as a tableThe server child to query |
---|
Return value(s):
The scoreboard for a server daemon as a table
Â
Arguments:
-
+
Argument | @@ -2321,14 +2205,12 @@ Returns the scoreboard for a single thread as a tableThe thread to query |
---|
Return value(s):
The scoreboard for a single thread as a table
Â
Arguments:
-
- None
None
Return value(s):
A table with information about the server program
Â
Arguments:
-
+
Argument | @@ -2372,14 +2252,12 @@ Returns the time when the server was (re)startedThe mod_lua request handle |
---|
Return value(s):
The time when the server was (re)started
Â
Arguments:
-
+
Argument | @@ -2402,17 +2280,14 @@ Query the server for some state informationWhich information is requested |
---|
Example:
-
+
Â
Arguments:
-
- None
None
+Â
apache2.dbopen
db:query
@@ -2441,17 +2315,18 @@ Kills off a server process. This has no other use than to show how dangerous mod
db:close
+
-Opens up a new database connection. See the DB functions for mod_pLua for more info on this. +Opens up a new database connection.
Arguments:
-
+
Argument | @@ -2470,7 +2345,6 @@ Opens up a new database connection. See the DB functions for mod_pLua for more iconnection string |
---|
Return value(s):
@@ -2478,7 +2352,7 @@ The database connection as a table with functions, or nil if the connection fail
Example:
-
+
Â
Arguments:
-
+
Argument | @@ -2512,17 +2384,14 @@ Closes a database connectionThe mod_lua request handle |
---|
Example:
-
+
Â
Arguments:
-
+
Argument | @@ -2549,7 +2418,6 @@ Executes a statement that doesn't return a result setThe SQL statement to execute |
---|
Return value(s):
@@ -2557,7 +2425,7 @@ If the statement is valid, a table of results are returned. If an error occurred
Example:
-
+
Â
Arguments:
-
+
Argument | @@ -2594,7 +2460,6 @@ Queries the database for information using the specified statement.The SQL statement to execute |
---|
Return value(s):
@@ -2602,7 +2467,7 @@ If the statement is valid, a table of results are returned. If an error occurred
Example:
-
+
Â
Arguments:
-
- None
None
Return value(s):
The current time in microseconds.
Â
Arguments:
-
+
Argument | @@ -2665,19 +2528,16 @@ Sleeps for a while. Floating point values can be used to sleep for less than a sThe number of seconds to sleep. |
---|
Example:
-
+
Â