Utility methods for working with WSGI servers.
keystone.common.wsgi.
Application
[source]¶Bases: keystone.common.wsgi.BaseApplication
assert_admin
(request)[source]¶Ensure the user is an admin.
Raises: |
|
---|
keystone.common.wsgi.
BaseApplication
[source]¶Bases: object
Base WSGI application wrapper. Subclasses need to implement __call__.
keystone.common.wsgi.
ComposableRouter
(mapper=None)[source]¶Bases: keystone.common.wsgi.Router
Router that supports use by ComposingRouter.
keystone.common.wsgi.
ComposingRouter
(mapper=None, routers=None)[source]¶Bases: keystone.common.wsgi.Router
keystone.common.wsgi.
Debug
(application, conf=None)[source]¶Bases: keystone.common.wsgi.Middleware
Helper class for debugging a WSGI application.
Can be inserted into any WSGI application chain to get information about the request and response.
keystone.common.wsgi.
ExtensionRouter
(application, mapper=None)[source]¶Bases: keystone.common.wsgi.Router
A router that allows extensions to supplement or overwrite routes.
Expects to be subclassed.
keystone.common.wsgi.
Middleware
(application, conf=None)[source]¶Bases: keystone.common.wsgi.Application
Base WSGI middleware.
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.
factory
(global_config)[source]¶Used for paste app factories in paste.deploy config files.
keystone.common.wsgi.
Router
(mapper)[source]¶Bases: object
WSGI middleware that maps incoming requests to WSGI apps.
keystone.common.wsgi.
V3ExtensionRouter
(application, mapper=None)[source]¶Bases: keystone.common.wsgi.ExtensionRouter
, keystone.common.wsgi.RoutersBase
Base class for V3 extension router.
keystone.common.wsgi.
best_match_language
(req)[source]¶Determine the best available locale.
This returns best available locale based on the Accept-Language HTTP header passed in the request.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.