comparison src/luan/modules/http/tools/java_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 5dbb552075ff
comparison
equal deleted inserted replaced
1149:1b7c20e20ca7 1150:0842b9b570f8
21 end 21 end
22 %> 22 %>
23 <html> 23 <html>
24 <body> 24 <body>
25 <h1>Java Threads</h1> 25 <h1>Java Threads</h1>
26 <p><%=Http.request.header.host%> - <%=Time.format(Time.now())%></p> 26 <p><%=Http.request.headers["host"]%> - <%=Time.format(Time.now())%></p>
27 <% 27 <%
28 local count = 0 28 local count = 0
29 for _, thread in Luan.ipairs(threads) do 29 for _, thread in Luan.ipairs(threads) do
30 %> 30 %>
31 <p><%=thread.string%> <%=thread.state%> 31 <p><%=thread.string%> <%=thread.state%>