|
@@ -416,7 +416,10 @@ Note that this example uses function `mg.write()`, which sends data to the
|
|
|
web client. Using `mg.write()` is the way to generate web content from inside
|
|
|
Lua code. In addition to `mg.write()`, all standard Lua library functions
|
|
|
are accessible from the Lua code (please check the reference manual for
|
|
|
-details). Information on the request is available in the `mg.request_info`
|
|
|
+details). Lua functions working on files (e.g., `io.open`) use a path
|
|
|
+relative to the working path of the civetweb process. The web server content
|
|
|
+is located in the path `mg.document_root`.
|
|
|
+Information on the request is available in the `mg.request_info`
|
|
|
object, like the request method, all HTTP headers, etcetera.
|
|
|
|
|
|
[page2.lua](https://github.com/bel2125/civetweb/blob/master/test/page2.lua)
|