Simple server based on pegasus.lua library
local uv = require "lluv"
local Pegasus = require "lluv.pegasus"
local server = Pegasus.new{host = '127.0.0.1', port = 9090}
server:start(function(request, response)
response:statusCode(200)
response:addHeader('Content-Type', 'text/plain')
response:write('Hello from Pegasus')
end)
uv.run()