home
wiki
classes/clusters list
class information
+
Point of view
LOOP_ITEM
ANY
HTTP_SERVER
RECYCLING_POOL
SERVER
LOOP_ITEM
JOB
INTERNALS_HANDLER
All features
class HTTP_CONNECTION
Summary
top
Handle one connection to the
HTTP_SERVER
. The real HTTP protocol is defined here.
Direct parents
inherit list:
CONNECTION
insert list:
DISPOSABLE
,
RECYCLABLE
Overview
top
creation features
make
(a_method_handler_factory:
FUNCTION
[
TUPLE 4
[
STRING
,
STRING
,
STRING
,
OUTPUT_STREAM
],
HTTP_METHOD_HANDLER
])
exported features
continue
Continue to do the job The work to do has to be small work and non blocking, it will continue on next call
prepare
(events:
EVENTS_SET
)
use ready to descibe condition that make this job ready to continue.
is_ready
(events:
EVENTS_SET
):
BOOLEAN
check if this job is ready to continue his work
done
:
BOOLEAN
done
returns
True
when the job is finished.
restart
Configure the job like the initial state.
priority
:
INTEGER_32
Never change priority after job inserted in loop_item.
infix "<"
(other:
JOB
):
BOOLEAN
continue
effective procedure
top
Continue to do the job The work to do has to be small work and non blocking, it will continue on next call
require
not done
prepare
(events:
EVENTS_SET
)
effective procedure
top
use ready to descibe condition that make this job ready to continue.
require
events /= Void
not events.queryable
not done
is_ready
(events:
EVENTS_SET
):
BOOLEAN
effective function
top
check if this job is ready to continue his work
require
events /= Void
events.queryable
not done
done
:
BOOLEAN
effective function
top
done
returns
True
when the job is finished.
Then the job may be
restart
(ed) if it need to run again.
restart
effective procedure
top
Configure the job like the initial state.
Example: when some window dialog appears second time, all jobs from this window are restarted.
require
done
ensure
not done
priority
:
INTEGER_32
writable attribute
top
Never change priority after job inserted in loop_item.
Priority should only be set at creation time.
infix "<"
(other:
JOB
):
BOOLEAN
effective function
top