cosmopolitan/tool/net/redbean.lua
Justine Tunney 6b90ff60cd Add preliminary lua support to redbean
This change only implements enough Lua support to send a Hello World
response. The redbean executable size increases from ~128kb to 260kb
and the requests per second decreases from 1000k to 600k. That's the
fastest it can go and that's extremely impressive compared to Python

See #97
2021-03-21 17:27:53 -07:00

7 lines
199 B
Lua

send('HTTP/1.1 200 OK\r\n'..
'Date: ' .. date() .. '\r\n'..
'Server: redbean/0.1\r\n'..
'Content-Type: text/plain\r\n'..
'Content-Length: 7\r\n'..
'\r\n'..
'hello\r\n')