Property definitions

nitcorn $ ServerThread :: defaultinit
class ServerThread
	super Thread

	redef fun main
	do
		# Hide testing concept to force nitcorn to actually run
		"NIT_TESTING".setenv("false")

		# Setup
		var vh = new VirtualHost(iface)
		vh.routes.add new Route("rest_path", new MyAction)

		# Launch
		var factory = new HttpFactory.and_libevent
		factory.config.virtual_hosts.add vh
		factory.run

		return null
	end
end
lib/nitcorn/examples/src/test_restful_annot.nit:31,1--50,3