annotate http/src/luan/modules/http/serve.luan @ 494:2b9bc97f0439

change luan:web to luan:http
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 15 May 2015 17:43:13 -0600
parents http/src/luan/modules/web/serve.luan@1d082a0812e0
children ca169567ce07
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
347
612a283b3d14 improve luan/web file names and add serve.luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
1 local Io = require "luan:Io"
494
2b9bc97f0439 change luan:web to luan:http
Franklin Schmidt <fschmidt@gmail.com>
parents: 493
diff changeset
2 local Server = require "luan:http/Server"
347
612a283b3d14 improve luan/web file names and add serve.luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
3
612a283b3d14 improve luan/web file names and add serve.luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
4 if #{...} ~= 1 then
494
2b9bc97f0439 change luan:web to luan:http
Franklin Schmidt <fschmidt@gmail.com>
parents: 493
diff changeset
5 Io.stderr.write "usage: luan luan:http/serve dir-URI\n"
347
612a283b3d14 improve luan/web file names and add serve.luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
6 return
612a283b3d14 improve luan/web file names and add serve.luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
7 end
612a283b3d14 improve luan/web file names and add serve.luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
8
612a283b3d14 improve luan/web file names and add serve.luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
9 Server.serve(...)