view src/luan/modules/http/serve.luan @ 1000:32d4b569567c

simplify handle()
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 19 Oct 2016 04:22:51 -0600
parents 1a68fc55a80c
children 1aa6dd74f3fc
line wrap: on
line source

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

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

Server.serve(...)