Mercurial Hosting > luan
comparison src/luan/modules/http/tools/luan_threads.luan @ 1150:0842b9b570f8
change http headers interface
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 04 Feb 2018 18:03:37 -0700 |
parents | 4cddfc06a34f |
children | 1f9d34a6f308 |
comparison
equal
deleted
inserted
replaced
1149:1b7c20e20ca7 | 1150:0842b9b570f8 |
---|---|
23 end | 23 end |
24 %> | 24 %> |
25 <html> | 25 <html> |
26 <body> | 26 <body> |
27 <h1>Luan Threads</h1> | 27 <h1>Luan Threads</h1> |
28 <p><%=Http.request.header.host%> - <%=Time.format(Time.now())%></p> | 28 <p><%=Http.request.headers["host"]%> - <%=Time.format(Time.now())%></p> |
29 <% | 29 <% |
30 local count = 0 | 30 local count = 0 |
31 for _, thread in Luan.ipairs(threads) do | 31 for _, thread in Luan.ipairs(threads) do |
32 local luan_trace = assert_table(LuanException.justLuan(thread.trace)) | 32 local luan_trace = assert_table(LuanException.justLuan(thread.trace)) |
33 if #luan_trace > 0 then | 33 if #luan_trace > 0 then |