annotate src/admin/request.txt.luan @ 26:d3b72a8bfbe9
 default tip 
Add rate limiting, change moveLogs.sh to only operate on non-empty files
 | author | 
 Violet7 | 
 | date | 
 Sat, 01 Nov 2025 22:12:56 -0700 | 
 | parents | 
 dfc36e7ed22c  | 
 | children | 
  | 
 | rev | 
   line source | 
  
| 
0
 | 
     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
 |