annotate src/tools/params.txt.luan @ 23:e5c77f8d506d default tip

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 15 Sep 2024 10:45:43 -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