Mercurial Hosting > luan
view src/luan/modules/http/test.luan @ 1618:a37ffe2d1b14
fix not_found_handler
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 14 Jun 2021 18:45:17 -0600 |
parents | 307e76ccd0d6 |
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)