Mercurial Hosting > luan
comparison http/src/luan/modules/http/shell.luan @ 497:55f9f74f1e55
Http.request is now pure luan
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 17 May 2015 19:25:47 -0600 |
parents | 598123096772 |
children | 92c3d22745b8 |
comparison
equal
deleted
inserted
replaced
496:c65df5b25932 | 497:55f9f74f1e55 |
---|---|
12 | 12 |
13 local history = {} | 13 local history = {} |
14 env = {} | 14 env = {} |
15 | 15 |
16 function respond() | 16 function respond() |
17 if Http.request.parameters.clear ~= nil then | 17 if Http.request.parameter.clear ~= nil then |
18 history = {} | 18 history = {} |
19 else | 19 else |
20 local cmd = Http.request.parameters.cmd | 20 local cmd = Http.request.parameter.cmd |
21 if cmd ~= nil then | 21 if cmd ~= nil then |
22 Io.stdout = {} | 22 Io.stdout = {} |
23 function Io.stdout.write(...) | 23 function Io.stdout.write(...) |
24 for v in Luan.values(...) do | 24 for v in Luan.values(...) do |
25 history[#history+1] = v | 25 history[#history+1] = v |