keystone.middleware.core module

keystone.middleware.core module

class keystone.middleware.core.JsonBodyMiddleware(application, conf=None)[source]

Bases: keystone.common.wsgi.Middleware

Middleware to allow method arguments to be passed as serialized JSON.

Accepting arguments as JSON is useful for accepting data that may be more complex than simple primitives.

Filters out the parameters self, context and anything beginning with an underscore.

process_request(request)[source]

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.

class keystone.middleware.core.NormalizingFilter(application, conf=None)[source]

Bases: keystone.common.wsgi.Middleware

Middleware filter to handle URL normalization.

process_request(request)[source]

Normalize URLs.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.