The cinder.openstack.common.middleware.base Module

Base class(es) for WSGI Middleware.

class Middleware(application)

Bases: object

Base WSGI middleware wrapper.

These classes require an application to be initialized that will be called next. By default the middleware will simply call its wrapped app, or you can override __call__ to customize its behavior.

classmethod factory(global_conf, **local_conf)

Factory method for paste.deploy.

process_request(req)

Called on each request.

If this returns None, the next application down the stack will be executed. If it returns a response then that response will be returned and execution will stop here.

process_response(response)

Do whatever you’d like to the response.

Previous topic

The cinder.openstack.common.loopingcall Module

Next topic

The cinder.openstack.common.middleware.request_id Module

This Page