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

Module middlewares

source code

Classes [hide private]
  SubdirMiddleware
Middleware choosing wsgi applications based on a dict.
  NoWriteCallableMiddleware
This middleware wraps a wsgi application that needs the return value of start_response function to a wsgi application that doesn't need one by writing the data to a BytesIO and then making it be the first result element.
  ContentLengthMiddleware
Guesses the content length header if possible.
  CachingMiddleware
Caches reponses to requests based on SCRIPT_NAME, PATH_INFO and QUERY_STRING.
  DictAuthChecker
Verifies usernames and passwords by looking them up in a dict.
  BasicAuthMiddleware
Middleware implementing HTTP Basic Auth.
  TracebackMiddleware
In case the application throws an exception this middleware will show an html-formatted traceback using cgitb.
Functions [hide private]
 
exc_info_for_raise(exc_info) source code
 
storable(environ) source code
 
cacheable(environ) source code
Variables [hide private]
  __package__ = 'wsgitools'