view src/luan/modules/http/test.luan @ 1321:307e76ccd0d6

generalize separate logging
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 05 Feb 2019 22:36:55 -0700
parents 7fc83fd2a39a
children
line wrap: on
line source

local Luan = require "luan:Luan.luan"
local Io = require "luan:Io.luan"
local Server = require "luan:http/Server.luan"


if #{...} ~= 2 then
	Io.stderr.write "usage: luan luan:http/test.luan dir test-URI\n"
	return
end

local dir, test = ...

Server.init_dir(dir)
Luan.do_file(test)