comparison 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
comparison
equal deleted inserted replaced
1280:781ec0a92bb5 1281:7fc83fd2a39a
2 local Server = require "luan:http/Server.luan" 2 local Server = require "luan:http/Server.luan"
3 local Logging = require "luan:logging/Logging.luan" 3 local Logging = require "luan:logging/Logging.luan"
4 4
5 5
6 if #{...} ~= 1 then 6 if #{...} ~= 1 then
7 Io.stderr.write "usage: luan luan:http/serve dir\n" 7 Io.stderr.write "usage: luan luan:http/serve.luan dir\n"
8 return 8 return
9 end 9 end
10 10
11 Logging.init() 11 Logging.init()
12 Server.serve(...) 12 Server.serve(...)