Package wtf :: Package app :: Package services :: Module session :: Class Middleware
[hide private]
[frames] | no frames]

Class Middleware

source code

object --+
         |
        Middleware

Session middleware
Instance Methods [hide private]
 
__init__(self, storage, func)
Initialization
source code
iterable
__call__(self, environ, start_response)
Middleware handler
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
callable _func
Next WSGI handler
StorageFactoryInterface _storage
Storage factory
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, storage, func)
(Constructor)

source code 
Initialization
Parameters:
Overrides: object.__init__

__call__(self, environ, start_response)
(Call operator)

source code 
Middleware handler
Parameters:
  • environ (dict) - WSGI environment
  • start_response (callable) - Start response callable
Returns: iterable
WSGI response iterable