request
nitcorn :: RestfulTask :: defaultinit
nitcorn :: RestfulTask :: http_server=
Server handling therequest
nitcorn :: RestfulTask :: indirect_restful_method
Indirection to the real method inaction
nitcorn :: RestfulTask :: request=
Request that created this threadnitcorn $ RestfulTask :: SELF
Type of this instance, automatically specialized in every classcore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: Object :: defaultinit
nitcorn :: RestfulTask :: defaultinit
core :: Task :: defaultinit
nitcorn :: RestfulTask :: http_server=
Server handling therequest
nitcorn :: RestfulTask :: indirect_restful_method
Indirection to the real method inaction
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: output_class_name
Display class name on stdout (debug only).nitcorn :: RestfulTask :: request=
Request that created this thread
# 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