Mercurial Hosting > luan
view http/src/luan/modules/http/test.luan @ 626:53a50c70c5e2
add Luan.assert_function() and Http.run_later()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 17 Jan 2016 06:19:46 -0700 |
parents | 9218f9cf45d3 |
children | ca169567ce07 |
line wrap: on
line source
local Luan = require "luan:Luan" local Io = require "luan:Io" local Server = require "luan:http/Server" if #{...} ~= 2 then Io.stderr.write "usage: luan luan:http/serve dir-URI test-URI\n" return end local dir, test = ... Server.init(dir) Luan.do_file(test,true)