Property definitions

nitcorn $ RestfulTask :: defaultinit
# Thread dedicated to a single `request`
abstract class RestfulTask
	super Task

	# Type of `action`
	type A: RestfulAction

	# Receiver action
	var action: A

	# Request that created this thread
	var request: HttpRequest

	# Server handling the `request`
	var http_server: HttpServer

	# Indirection to the real method in `action`
	protected fun indirect_restful_method: HttpResponse is abstract

	redef fun main
	do
		var response = indirect_restful_method
		http_server.respond response
		http_server.close
	end
end
lib/nitcorn/restful.nit:94,1--119,3