I would vote sticking with an object or dict, as the context may be passed over the message bus to workers. Most of the WSGI environ members won't make much sense in the worker process. -Eric On Tue, Sep 21, 2010 at 07:06:56PM -0000, Michael Gundlach wrote: > WSGI has an environ dictionary that is for storing context about the > request; would it make sense to replace APIRequestContext entirely, just > passing the environ dict around? Pro: reuses WSGI concept. Con: passing > around a dictionary that has more info in it than strictly needed; risks > coupling the code to WSGI more tightly. > > - Michael > > On Tue, Sep 21, 2010 at 2:18 PM, vishvananda