Mercurial Hosting > luan
view src/luan/modules/http/test.luan @ 1265:3f4644246e39
LuanHandler cleanup and add Server.serve_for_proxy
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 25 Sep 2018 19:51:34 -0600 |
parents | a50803fde972 |
children | 7fc83fd2a39a |
line wrap: on
line source
local Luan = require "luan:Luan.luan" local Io = require "luan:Io.luan" local Server = require "luan:http/Server.luan" local Logging = require "luan:logging/Logging.luan" if #{...} ~= 2 then Io.stderr.write "usage: luan luan:http/serve dir test-URI\n" return end local dir, test = ... Logging.init() Server.init_dir(dir) Luan.do_file(test)