# ironicclient.common.http module

class ironicclient.common.http.SessionClient(os_ironic_api_version, api_version_select_state, max_retries, retry_interval, **kwargs)

  Bases: `VersionNegotiationMixin`, `LegacyJsonAdapter`

  HTTP client based on Keystone client session.

  json_request(method, url, **kwargs)
  raw_request(method, url, **kwargs)

class ironicclient.common.http.VersionNegotiationMixin

  Bases: `object`

  negotiate_version(conn, resp)

    Negotiate the server version

    Assumption: Called after receiving a 406 error when doing a request.

    Parameters:

      - conn – A connection object

      - resp – The response object from http request

ironicclient.common.http.get_server(url)

  Extract and return the server & port.

ironicclient.common.http.with_retries(func)

  Wrapper for _http_request adding support for retries.

this page last updated: 2026-03-26 21:20:19

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.

found an error? report a bug