Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Copas is a dispatcher based on coroutines that can be used by TCP/IP servers.
Lua Makefile

Merge pull request #26 from Tieske/fix_autoclose

fixed autoclose not closing udp sockets. added docs for autoclose
latest commit 37a07a19c3
@Tieske Tieske authored

README

Copas 1.2.1
(http://keplerproject.github.io/copas)

Copas is a dispatcher based on coroutines that can be used by TCP/IP servers.
It uses LuaSocket as the interface with the TCP/IP stack.

A server 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 http://keplerproject.github.io/copas/
Something went wrong with that request. Please try again.