mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 23:13:34 +00:00
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
7 lines
199 B
Lua
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')
|