nitcorn :: ServerThread :: defaultinit
nitcorn $ ServerThread :: SELF
Type of this instance, automatically specialized in every classcore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
pthreads :: Thread :: defaultinit
nitcorn :: ServerThread :: defaultinit
core :: Object :: defaultinit
core :: Finalizable :: defaultinit
core :: Finalizable :: finalize
Liberate any resources held byself
before the memory holding self
is freed
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).
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