Transparent image file caching middleware, designed to live on Glance API nodes. When images are requested from the API node, this middleware caches the returned image file to local filesystem.
When subsequent requests for the same image file are received, the local cached copy of the image file is returned.
Bases: glance.common.wsgi.Middleware
Returns the integer status code from the response, which can be either a Webob.Response (used in testing) or httplib.Response
Image Cache Management API
Bases: glance.api.middleware.context.BaseContextMiddleware
Convert authentication information into a request context
Generate a glance.context.RequestContext object from the available authentication headers and store on the ‘context’ attribute of the req object.
Parameters: | req – wsgi request object that will be given the context object |
---|---|
Raises: | webob.exc.HTTPUnauthorized: when value of the X-Identity-Status header is not ‘Confirmed’ and anonymous access is disallowed |
Use gzip compression if the client accepts it.
A filter middleware that inspects the requested URI for a version string and/or Accept headers and attempts to negotiate an API controller to return
Bases: glance.api.middleware.version_negotiation.VersionNegotiationFilter