Mercurial Hosting > freedit
annotate src/tools/request.txt.luan @ 17:a602a5735a37
set up test.freedit.org
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 07 Jul 2022 15:30:06 -0600 |
parents | 2f20b11affdd |
children |
rev | line source |
---|---|
5 | 1 local Binary = require "luan:Binary.luan" |
2 local Io = require "luan:Io.luan" | |
3 local Http = require "luan:http/Http.luan" | |
4 | |
5 | |
6 return function() | |
7 Io.stdout = Http.response.text_writer() | |
8 %><%= Http.request.raw_head %><% | |
9 if Http.request.body ~= nil then | |
10 %><%=Binary.to_string(Http.request.body,"utf-8")%><% | |
11 end | |
12 end |