From 179e5a57f5310cf92aa2236afb901aa529a93a6f Mon Sep 17 00:00:00 2001
From: Daniel Gruno Â
-Adds an output filter to the request
-
-Arguments:
-
-Example:
- Â
apache2.port
-apache2.getenv
-
-apache2.setenv
-
apache2.options
apache2.allowoverrides
@@ -830,8 +826,6 @@ print(unescaped) -- prints "This is a test"
apache2.add_input_filter
-apache2.add_output_filter
-
apache2.get_basic_auth_pw
apache2.get_limit_req_body
@@ -842,12 +836,10 @@ print(unescaped) -- prints "This is a test"
apache2.some_auth_required
-apache2.context_document_root
-
-apache2.context_prefix
-
apache2.set_context_prefix
+apache2.get_server_name_for_url
+
apache2.set_keepalive
apache2.make_etag
@@ -898,39 +890,6 @@ apache2.add_input_filter(r, "SPAM_FILTER") -- Check input for spam..?
-
-
-
-Argument
-Description
-
-
-r
-The mod_lua request handle
-
-
-filter
-The name of the filter handler to add
-
Â
--Get the context_document_root for a request. This is a generalization of the document root, which is too limited in the presence of mappers like mod_userdir and mod_alias. The context_document_root is the directory on disk that maps to the context_prefix URI prefix. -
--Arguments: -
-Argument | -Description | -
---|---|
r | -The mod_lua request handle | -
Â
--Get the context_prefix for a request. The context_prefix URI prefix maps to the context_document_root on disk. -
--Arguments: -
-Argument | -Description | -
---|---|
r | -The mod_lua request handle | -
Â
-@@ -1174,7 +1087,16 @@ Returns the current server name from the request
Arguments:
-None
+Argument | +Description | +
---|---|
r | +The mod_lua request handle | +
Return value(s):
@@ -1189,13 +1111,14 @@ r:puts("The ServerName is set to: ", name)
Â
-Returns the value of an environment variable +Get the current server name from the request for the purposes of using in a URL. +If the server name is an IPv6 literal address, it will be returned in URL format (e.g., "[fe80::1]").
Arguments: @@ -1209,25 +1132,7 @@ Returns the value of an environment variable
-Return value(s):
-
-The queried value
-
-Example: -
-Â
@@ -1391,8 +1296,12 @@ Reads the request body. If a filename is specified, the request body will be wri
@@ -1405,10 +1314,10 @@ The number of bytes written if a filename was specified, otherwise it returns th
Â
-Sets the value of an environment variable -
--Arguments: -
-Argument | -Description | -
---|---|
r | -The mod_lua request handle | -
key | -key | -
val | -val | -
-Example: -
-Â
-Â
@@ -2322,7 +2194,7 @@ Kills off a server process. This has no other use than to show how dangerous mod )-Opens up a new database connection. +Opens up a new database connection. See the DB functions for mod_pLua for more info on this.
Arguments: @@ -2540,5 +2412,4 @@ r:puts("delayed")
Â