28 lines
465 B
Markdown
28 lines
465 B
Markdown
---
|
|
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)
|
|
```
|