heat.api.middleware.version_negotiation module

heat.api.middleware.version_negotiation module

Inspects the requested URI for a version string and/or Accept headers.

Also attempts to negotiate an API controller to return.

class heat.api.middleware.version_negotiation.VersionNegotiationFilter(version_controller, app, conf, **local_conf)[source]

Bases: Middleware

process_request(req)[source]

Process Accept header or simply return correct API controller.

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

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.