Lua binding: New API: set_options
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
This commit is contained in:
1 parent
ab5eb4bdae
commit
8f8a29adc5
2 files changed
+22
No files matched your search
@@ -30,6 +30,7 @@ print("uhttpd version:", uh.VERSION)
|
||||
|
||||
local srv = uh.new(port)
|
||||
|
||||
-- srv:set_options({docroot = "/home/zjh/www", index = "lua.html"})
|
||||
-- srv:ssl_init("uhttpd.crt", "uhttpd.key")
|
||||
|
||||
print("Listen on:", port)
|
||||
|
||||
Reference in new issue
Block a user