Package wsgitools :: Module filters :: Class WSGIFilterMiddleware
[hide private]
[frames] | no frames]

Class WSGIFilterMiddleware

source code

This wsgi middleware can be used with specialized BaseWSGIFilters to modify wsgi requests and/or reponses.

Instance Methods [hide private]
 
__init__(self, app, filterclass) source code
gen([str])
__call__(self, environ, start_response)
wsgi interface
source code
Method Details [hide private]

__init__(self, app, filterclass)
(Constructor)

source code 
Parameters:
  • app - is a wsgi application.
  • filterclass (BaseWSGIFilters subclass) - is a subclass of BaseWSGIFilter or some class that implements the interface.

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

source code 

wsgi interface

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