Mercurial Hosting > luan
view src/luan/modules/http/serve.luan @ 1281:7fc83fd2a39a
http/Server cleanup
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 20 Dec 2018 14:09:19 -0700 |
parents | 7f4a12fb7716 |
children | 307e76ccd0d6 |
line wrap: on
line source
local Io = require "luan:Io.luan" local Server = require "luan:http/Server.luan" local Logging = require "luan:logging/Logging.luan" if #{...} ~= 1 then Io.stderr.write "usage: luan luan:http/serve.luan dir\n" return end Logging.init() Server.serve(...)