Class HTTPAccept.Loop
- Method
create
HTTPAccept.Loop HTTPAccept.Loop(Stdio.Portport,RequestProgramprogram,function(RequestProgram:void)request_handler,intcache_size,boolkeep_log,inttimeout)- 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.