Blog/content/posts/2023/lua/pegasus.md

28 lines
465 B
Markdown
Raw Normal View History

2023-09-30 20:17:46 +03:00
---
title: "🐎 Pegasus — веб сервер для веб приложений на Lua"
date: 2023-09-30T20:08:38+03:00
draft: true
tags: [http, libs, links, lua, development]
---
**Установка**
```sh
luarocks install pegasus
```
**Использование**
```lua
local pegasus = require 'pegasus'
local server = pegasus:new({
port='9090',
location='root/'
})
server:start(function (request, response)
print "It's running..."
end)
```