Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Copas is a dispatcher based on coroutines that can be used by TCP/IP servers.
Lua Makefile
Latest commit f39a80a @Tieske Tieske Merge pull request #28 from Tieske/ssl_implemented
Added ssl support and client functions and several fixes
Failed to load latest commit information.
doc/us prepare for release
rockspec prepare for release
src prepare for release
tests implemented handler wrapper
Makefile rearranged src directory rearranged src directory
README prepare for release


Copas 2.0.0

Copas is a dispatcher based on coroutines that can be used for asynchroneous 
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 

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 and 5.2

Copas can be downloaded from its GitHub page.

You can also install Copas using LuaRocks:
luarocks install copas

For more details see the documentation at
Something went wrong with that request. Please try again.