Mercurial Hosting > chat
comparison src/tools/request.txt.luan @ 100:0e3b22ece2fc
use luan web tools
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 30 Jun 2025 22:32:26 -0600 |
parents | e22a1ba4b2ed |
children |
comparison
equal
deleted
inserted
replaced
99:c14b903c8373 | 100:0e3b22ece2fc |
---|---|
1 local Binary = require "luan:Binary.luan" | 1 return require "luan:http/tools/request.txt.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 |