Copas is a dispatcher based on coroutines that can be used by TCP/IP servers.
Lua Makefile
Latest commit 92c3447 Oct 1, 2016 @hishamhm hishamhm Add LICENSE. Closes #59.
Permalink
Failed to load latest commit information.
doc/us Add keep_open flag for removeserver() (#56) Jun 7, 2016
rockspec prepare for release 2.0.1 Feb 16, 2016
src Add keep_open flag for removeserver() (#56) Jun 7, 2016
tests Add keep_open flag for removeserver() (#56) Jun 7, 2016
.gitignore updated docs for 5.3 support and fixing limit.lua Jan 22, 2016
.travis.yml Makefile tweaks Mar 17, 2016
LICENSE Add LICENSE. Closes #59. Oct 1, 2016
Makefile Add keep_open flag for removeserver() (#56) Jun 7, 2016
Makefile.win
README.md Update Coverage badge Mar 16, 2016

README.md

Copas 2.0

Build Status Coverage Status

Copas is a dispatcher based on coroutines that can be used for asynchronous networking. For example TCP or UDP based servers. But it also features timers and client support for http(s), ftp and smtp requests.

It uses LuaSocket as the interface with the TCP/IP stack and LuaSec for ssl support.

A server or thread registered with Copas should provide a handler for requests and use Copas socket functions to send the response. Copas loops through requests and invokes the corresponding handlers. For a full implementation of a Copas HTTP server you can refer to Xavante as an example.

Copas is free software and uses the same license as Lua 5.1 to 5.3 (MIT), and can be downloaded from its GitHub page.

The easiest way to install Copas is through LuaRocks:

luarocks install copas

For more details see the documentation.