webmcp

diff framework/env/request/handler.lua @ 316:a2c733535b8e

Support intervals; Interactive shell requires application name now
author jbe
date Mon Mar 23 16:05:56 2015 +0100 (2015-03-23)
parents 3181d410437c
children e3e2a03f75b2
line diff
     1.1 --- a/framework/env/request/handler.lua	Sun Mar 22 23:12:33 2015 +0100
     1.2 +++ b/framework/env/request/handler.lua	Mon Mar 23 16:05:56 2015 +0100
     1.3 @@ -4,7 +4,7 @@
     1.4    close           -- boolean indicating whether the server should announce to close the connection
     1.5  )
     1.6  
     1.7 -Called by mcp.lua to process an HTTP request. Performs some initializations, calls request.router(), and handles the request.
     1.8 +Called by mcp.lua to process an HTTP request. Calls request.router(), and handles the request. Note: request initializers will have to be (automatically) executed before this function is invoked by mcp.lua.
     1.9  
    1.10  --]]--
    1.11  
    1.12 @@ -19,14 +19,6 @@
    1.13  end
    1.14  
    1.15  function request.handler(http_request, close)
    1.16 -  _G.app = {}  -- may be overwritten or modified by request initializers
    1.17 -  do
    1.18 -    request._in_progress = true  -- NOTE: must be set to true before initializer functions are called
    1.19 -    for i, func in ipairs(request._initializers) do
    1.20 -      func()
    1.21 -    end
    1.22 -  end
    1.23 -
    1.24    request._http_request = http_request
    1.25    local path = http_request.path
    1.26    if path then

Impressum / About Us