webmcp

diff framework/env/request/is_in_progress.lua @ 492:93ebbc1e5dbc

Allow actions to directly return content (e.g. for XMLHttpRequests) by calling slot.set_layout(...) during request handling
author jbe
date Tue Jun 27 17:34:02 2017 +0200 (2017-06-27)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/framework/env/request/is_in_progress.lua	Tue Jun 27 17:34:02 2017 +0200
     1.3 @@ -0,0 +1,11 @@
     1.4 +--[[--
     1.5 +bool =                    -- true, if a request is currently in progress (i.e. being answered)
     1.6 +request.is_in_progress()
     1.7 +
     1.8 +This function can be used to check if a request is currently in progress. Returns false during configuration.
     1.9 +
    1.10 +--]]--
    1.11 +
    1.12 +function request.is_in_progress()
    1.13 +  return request._in_progress
    1.14 +end

Impressum / About Us