Mercurial Hosting > luan
comparison host/admin/src/private/tools/request.txt.luan @ 1995:301a6561fb6b
add host/admin
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 04 Jul 2025 10:25:38 -0600 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1994:035996323891 | 1995:301a6561fb6b |
---|---|
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 |