Quellcode durchsuchen

document mg.base64_encode and mg.base64_decode for Lua

bel vor 11 Jahren
Ursprung
Commit
172c106e7a
1 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen
  1. 4 2
      docs/UserManual.md

+ 4 - 2
docs/UserManual.md

@@ -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