view src/tools/request.txt.luan @ 11:3ed1e3f3a53a

use bbcode_to_html
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 30 Jun 2022 20:05:11 -0600
parents 2f20b11affdd
children
line wrap: on
line source

local Binary = require "luan:Binary.luan"
local Io = require "luan:Io.luan"
local Http = require "luan:http/Http.luan"


return function()
	Io.stdout = Http.response.text_writer()
	%><%= Http.request.raw_head %><%
	if Http.request.body ~= nil then
		%><%=Binary.to_string(Http.request.body,"utf-8")%><%
	end
end