jbe@262: --[[-- jbe@262: request.configure( jbe@262: func -- function which is performing the configuration jbe@262: ) jbe@262: jbe@262: Registers a function to be called on every request only if a request is not in progress yet. Executes the function once in any case. jbe@262: jbe@262: --]]-- jbe@262: jbe@262: function request.configure(func) jbe@262: if not request._in_progress then jbe@262: local initializers = request._initializers jbe@262: initializers[#initializers+1] = func jbe@262: end jbe@262: func() jbe@262: end