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: Middleware

process_request(req)[source]

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