~tsileo/gluapp

HTTP framework for GopherLua.
Tweak SetupState
New url module
Add headers:getlist

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~tsileo/gluapp
read/write
git@git.sr.ht:~tsileo/gluapp

You can also use your local clone with git send-email.

#Gluapp

builds.sr.ht status    Godoc Reference

HTTP framework for GopherLua.

#Features

  • Simple
  • No 3rd party requirements except gopher-lua
  • Rely on Go template language
  • Same request/response idioms as Go HTTP lib
  • Comes with a basic (and optional) router
  • First-class JSON support
  • Included HTTP client
  • Support importing dependency from GitHub on the fly with require2

#Example

local router = require('router').new()

router:get('/hello/:name', function(params)
  app.response:write('hello ' .. params.name)
end)

router:run()

#TODO

  • [ ] Write Lua modules documentation
  • [ ] A module for web scrapping
  • [ ] A basic key-value store module
  • [ ] read_file/write_file/read_json helper