The heat.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 heat.api.middleware.version_negotiation.VersionNegotiationFilter(version_controller, app, conf, **local_conf)[source]

Bases: heat.common.wsgi.Middleware

process_request(req)[source]

If there is a version identifier in the URI, simply return the correct API controller, otherwise, if we find an Accept: header, process it

Previous topic

The heat.api.middleware.ssl Module

Next topic

The heat.api.openstack.v1.actions Module

Project Source

This Page