Class HTTPAccept.Loop
- Method create
HTTPAccept.Loop HTTPAccept.Loop(
Stdio.Port
port
,RequestProgram
program
,function
(RequestProgram
:void
)request_handler
,int
cache_size
,bool
keep_log
,int
timeout
)- Description
Create a new HTTPAccept.
This will start a new thread that will listen for requests on the port, parse them and pass on requests, instanced from the program class (which has to inherit RequestProgram to the request_handler callback function.
cache_size is the maximum size of the cache, in bytes. keep_log indicates if a log of all requests should be kept. timeout if non-zero indicates a maximum time the server will wait for requests.