annotate src/tools/params.txt.luan @ 20:914a37651a38

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 05 Nov 2023 11:31:16 -0700
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