glance.api.middleware.version_negotiation module

glance.api.middleware.version_negotiation module

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

class glance.api.middleware.version_negotiation.VersionNegotiationFilter(app)[source]

Bases: glance.common.wsgi.Middleware

process_request(req)[source]

Try to find a version first in the accept header, then the URL

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.