Mercurial Hosting > luan
view src/luan/modules/http/serve.luan @ 1615:38894708bade
better init.luan exception handling
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 03 Jun 2021 18:00:49 -0600 |
parents | 307e76ccd0d6 |
children | 5eb985d1411f |
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.luan dir\n" return end Server.serve(...)