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
This commit is contained in:
7
tool/net/redbean.lua
Normal file
7
tool/net/redbean.lua
Normal file
@@ -0,0 +1,7 @@
|
||||
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')
|
||||
Reference in New Issue
Block a user