Package wsgitools :: Module middlewares :: Class SubdirMiddleware
[hide private]
[frames] | no frames]

Class SubdirMiddleware

source code

Middleware choosing wsgi applications based on a dict.

Instance Methods [hide private]
 
__init__(self, default, mapping={}) source code
gen([str])
__call__(self, environ, start_response)
wsgi interface
source code
Method Details [hide private]

__init__(self, default, mapping={})
(Constructor)

source code 
Parameters:
  • default (wsgi app)
  • mapping ({str: wsgi app})

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

source code 

wsgi interface

Parameters:
  • environ ({str: str})
Returns: gen([str])