Method HTTPAccept.Loop()->create()
- 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
programclass (which has to inherit RequestProgram to therequest_handlercallback function.cache_sizeis the maximum size of the cache, in bytes.keep_logindicates if a log of all requests should be kept.timeoutif non-zero indicates a maximum time the server will wait for requests.