annotate src/tools/params.txt.luan @ 21:1956302daa38

domain change
author Franklin Schmidt <fschmidt@gmail.com>
date Sat, 24 Aug 2024 22:24:53 -0600
parents 80105b716a62
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14
80105b716a62 start bot
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
1 local Luan = require "luan:Luan.luan"
80105b716a62 start bot
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
2 local error = Luan.error
80105b716a62 start bot
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
3 local stringify = Luan.stringify or error()
80105b716a62 start bot
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
4 local Io = require "luan:Io.luan"
80105b716a62 start bot
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
5 local Http = require "luan:http/Http.luan"
80105b716a62 start bot
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
6
80105b716a62 start bot
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
7
80105b716a62 start bot
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
8 return function()
80105b716a62 start bot
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
9 Io.stdout = Http.response.text_writer()
80105b716a62 start bot
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
10 %><%= stringify(Http.request.parameters) %><%
80105b716a62 start bot
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
11 end