|
@@ -409,11 +409,13 @@ mg (table):
|
|
|
mg.document_root -- a string that holds the document root directory
|
|
|
mg.auth_domain -- a string that holds the HTTP authentication domain
|
|
|
mg.get_var(str, varname) -- extract variable from (query) string
|
|
|
- mg.get_cookie(str, cookie) -- extract cookie from a string
|
|
|
+ mg.get_cookie(str, cookie) -- extract cookie from a string
|
|
|
mg.get_mime_type(filename) -- get MIME type of a file
|
|
|
mg.send_file(filename) -- send a file, including MIME type
|
|
|
mg.url_encode(str) -- URL encode a string
|
|
|
mg.url_decode(str) -- URL decode a string
|
|
|
+ mg.base64_encode(str) -- BASE64 encode a string
|
|
|
+ mg.base64_decode(str) -- BASE64 decode a string
|
|
|
mg.md5(str) -- return the MD5 hash of a string
|
|
|
mg.keep_alive(bool) -- allow/forbid to use http keep-alive for this request
|
|
|
mg.request_info -- a table with the following request information
|
|
@@ -426,7 +428,7 @@ mg (table):
|
|
|
.query_string -- query string if present, nil otherwise
|
|
|
.script_name -- name of the Lua script
|
|
|
.https -- true if accessed by https://, false otherwise
|
|
|
- .remote_user -- user name if authenticated, nil otherwise
|
|
|
+ .remote_user -- user name if authenticated, nil otherwise
|
|
|
|
|
|
connect (function):
|
|
|
-- Connect to the remote TCP server. This function is an implementation
|