home
wiki
classes/clusters list
class information
+
Point of view
All features
ANY
HTTP_CONNECTION
HTTP_SERVER
RECYCLING_POOL
SERVER
LOOP_ITEM
JOB
INTERNALS_HANDLER
All features
class HTTP_SERVER
Summary
top
Direct parents
insert list:
SERVER
Overview
top
creation features
make
(a_error_handler:
PROCEDURE
[
TUPLE 1
[
STRING
]], a_connection_factory:
FUNCTION
[
TUPLE
,
HTTP_CONNECTION
])
features
is_alive
:
BOOLEAN
log
(a_message:
STRING
)
current_time
:
STRING
shutdown
A connection asked the server to shut down
halt
A connection asked the server to halt
connection_done
(a_connection:
HTTP_CONNECTION
)
A connection is about to finish.
error_handler
:
PROCEDURE
[
TUPLE 1
[
STRING
]]
error handler
connection_factory
:
FUNCTION
[
TUPLE
,
HTTP_CONNECTION
]
the HTTP connection factory
make
(a_error_handler:
PROCEDURE
[
TUPLE 1
[
STRING
]], a_connection_factory:
FUNCTION
[
TUPLE
,
HTTP_CONNECTION
])
handle_error
(msg:
STRING
)
What to do when there was an error
connections_pool
:
RECYCLING_POOL
[
HTTP_CONNECTION
]
new_connection
:
HTTP_CONNECTION
Create a new connection
release_connection
(cnx:
HTTP_CONNECTION
)
start
(access:
ACCESS
)
Start a server at the given access point.
start_in_stack
(access:
ACCESS
, a_stack:
LOOP_STACK
, a_shutdown_handler:
PROCEDURE
[
TUPLE
[
TUPLE 1
[HTTP_SERVER]]]):
BOOLEAN
Start the server in the given stack.
set_logger
(a_logger:
PROCEDURE
[
TUPLE 1
[
STRING
]])
logger
:
PROCEDURE
[
TUPLE 1
[
STRING
]]
standalone_handler_agent
:
PROCEDURE
[
TUPLE
[
TUPLE 1
[HTTP_SERVER]]]
common_start
(access:
ACCESS
):
BOOLEAN
stack
:
LOOP_STACK
server
:
SOCKET_SERVER_JOB
connections
:
INTEGER_32
shutdown_handler
:
PROCEDURE
[
TUPLE
[
TUPLE 1
[HTTP_SERVER]]]
handle_connect
(a_io:
SOCKET_INPUT_OUTPUT_STREAM
)
Handle a connection to the server.
handle_shutdown
(a_server:
SOCKET_SERVER_JOB
)
Shutdown gracefully when all connections are closed.
standalone_shutdown
(a_server: HTTP_SERVER)
is_alive
:
BOOLEAN
effective function
top
log
(a_message:
STRING
)
effective procedure
top
current_time
:
STRING
effective function
top
shutdown
effective procedure
top
A connection asked the server to shut down
halt
effective procedure
top
A connection asked the server to halt
connection_done
(a_connection:
HTTP_CONNECTION
)
effective procedure
top
A connection is about to finish.
error_handler
:
PROCEDURE
[
TUPLE 1
[
STRING
]]
writable attribute
top
error handler
connection_factory
:
FUNCTION
[
TUPLE
,
HTTP_CONNECTION
]
writable attribute
top
the HTTP connection factory
make
(a_error_handler:
PROCEDURE
[
TUPLE 1
[
STRING
]], a_connection_factory:
FUNCTION
[
TUPLE
,
HTTP_CONNECTION
])
effective procedure
top
handle_error
(msg:
STRING
)
effective procedure
top
What to do when there was an error
connections_pool
:
RECYCLING_POOL
[
HTTP_CONNECTION
]
once function
top
new_connection
:
HTTP_CONNECTION
effective function
top
Create a new connection
release_connection
(cnx:
HTTP_CONNECTION
)
effective procedure
top
start
(access:
ACCESS
)
effective procedure
top
Start a server at the given access point.
start_in_stack
(access:
ACCESS
, a_stack:
LOOP_STACK
, a_shutdown_handler:
PROCEDURE
[
TUPLE
[
TUPLE 1
[HTTP_SERVER]]]):
BOOLEAN
effective function
top
Start the server in the given stack.
True if the server effectively started.
set_logger
(a_logger:
PROCEDURE
[
TUPLE 1
[
STRING
]])
effective procedure
top
logger
:
PROCEDURE
[
TUPLE 1
[
STRING
]]
writable attribute
top
standalone_handler_agent
:
PROCEDURE
[
TUPLE
[
TUPLE 1
[HTTP_SERVER]]]
effective function
top
common_start
(access:
ACCESS
):
BOOLEAN
effective function
top
stack
:
LOOP_STACK
writable attribute
top
server
:
SOCKET_SERVER_JOB
writable attribute
top
connections
:
INTEGER_32
writable attribute
top
shutdown_handler
:
PROCEDURE
[
TUPLE
[
TUPLE 1
[HTTP_SERVER]]]
writable attribute
top
handle_connect
(a_io:
SOCKET_INPUT_OUTPUT_STREAM
)
effective procedure
top
Handle a connection to the server.
This feature is called back by the server when a connection is attempted (see the
when_connect
feature of
SOCKET_SERVER
)
handle_shutdown
(a_server:
SOCKET_SERVER_JOB
)
effective procedure
top
Shutdown gracefully when all connections are closed.
This feature is called back by the server when it is asked to shut down (see the
when_shutdown
feature of
SOCKET_SERVER
)
require
a_server =
server
server
.will_shutdown
standalone_shutdown
(a_server: HTTP_SERVER)
effective procedure
top
require
a_server = Current