ironic.api.app module

class ironic.api.app.IronicCORS(application, *args, **kwargs)[source]

Bases: CORS

Ironic-specific CORS class

We’re adding the Ironic-specific version headers to the list of simple headers in order that a request bearing those headers might be accepted by the Ironic REST API.

simple_headers = ['Accept', 'Accept-Language', 'Content-Type', 'Cache-Control', 'Content-Language', 'Expires', 'Last-Modified', 'Pragma', 'X-Auth-Token', 'X-OpenStack-Ironic-API-Maximum-Version', 'X-OpenStack-Ironic-API-Minimum-Version', 'X-OpenStack-Ironic-API-Version']
class ironic.api.app.VersionSelectorApplication[source]

Bases: object

__call__(environ, start_response)[source]

Call self as a function.

ironic.api.app.get_pecan_config()[source]
ironic.api.app.setup_app(pecan_config=None, extra_hooks=None)[source]