Mercurial Hosting > luan
view website/src/examples/chunked.html.luan @ 2082:cdc9a31c6f71 ssltesting
update renewSsl.sh to reflect changes in directory structure
| author | Violet7 |
|---|---|
| date | Tue, 09 Dec 2025 17:53:16 -0800 |
| parents | bba3e529e346 |
| children |
line wrap: on
line source
local Luan = require "luan:Luan.luan" local error = Luan.error local range = Luan.range or error() local Thread = require "luan:Thread.luan" local sleep = Thread.sleep or error() local Io = require "luan:Io.luan" local Http = require "luan:http/Http.luan" return function() Http.response.write_chunked_text(function(writer) Io.stdout = writer for i in range(1,10) do %> line <%=i%><br> <% writer.flush() sleep(1000) end end) end
