def GetHttpContext():
 global _threadLocalContext
 return _threadLocalContext.__dict__.setdefault('httpCtx', dict())

def GetHttpContext ( ) : global _threadLocalContext return _threadLocalContext . __dict__ . setdefault ( 'httpCtx' , dict ( ) )
get the http context for the current thread .