1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-08-15 00:01:31 +03:00

Documentation: Lua functions ar not only for LSP but for all Lua environments

This commit is contained in:
bel
2013-12-18 23:32:18 +01:00
parent 5dfef94cfb
commit 0b6cb15ea2

View File

@@ -381,11 +381,13 @@ content. Please refer to `struct mg_request_info` definition in
[civetweb.h](https://github.com/sunsetbrew/civetweb/blob/master/include/civetweb.h)
to see additional information on the elements of the `mg.request_info` object.
Civetweb also provides SQlite3 access through Lua. An example is given in
Civetweb also provides access to the [SQlite3 database](http://www.sqlite.org/)
through the [LuaSQLite3 interface](http://lua.sqlite.org/index.cgi/doc/tip/doc/lsqlite3.wiki)
in Lua. An example is given in
[page.lp](https://github.com/sunsetbrew/civetweb/blob/master/test/page.lp).
Civetweb exports the following to the Lua server page:
Civetweb exports the following functions to Lua:
mg.read() -- reads a chunk from POST data, returns it as a string
mg.write(str) -- writes string to the client