webmcp
view framework/env/request/initialize.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 | |
| children | e3e2a03f75b2 | 
 line source
     1 --[[--
     2 request.initialize()
     4 Executes all request initializers. Request initializers are added (and executed) using the request.for_each(...) call. Calling request.configure(...) before invoking request.initialize() for the first time also adds a request initializer.
     6 --]]--
     7 function request.initialize()
     8   _G.app = {}  -- may be overwritten or modified by request initializers
     9   do
    10     request._in_progress = true  -- NOTE: must be set to true before initializer functions are called
    11     for i, func in ipairs(request._initializers) do
    12       func()
    13     end
    14   end
    15 end
