Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Lua api for the mongrel2 zeromq handler interface
branch: master

This branch is 27 commits behind jsimmons:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples
rockspecs
tests
.gitignore
Makefile
README.md
config.lua
connection.lua
init.lua
request.lua
util.lua

README.md

mongrel2-lua

A mongrel2 backend handler for Lua, implemented in Lua, and based on the mongrel2 python backend api.

Versions are tagged and match the mongrel2 version they should work with. ie v1.3[.x] should work with mongrel2 version 1.3. HEAD is kept in rough sync with the latest changes in the mongrel2 trunk.

Dependencies

Installation

m2-lua ships with a very basic Makefile that should install the required files somewhere useful. > sudo make install > sudo make uninstall

Usage

One may be more interested in using one of the web frameworks that are listed here as this library is a low level interface.

Otherwise I won't try to describe how mongrel2 or the handlers work, for that there's the manual, however this should describe the basic api. Generated API documentation is on the TODO list.

If in doubt, it's probably exactly the same as the python API.

There is a very basic demo in examples/test.lua and the code itself should be easy enough to follow.

Watch this space for links to proper documentation. I am working on it!

Something went wrong with that request. Please try again.