Adapters

Main module to track the adapters for the http backend.

class RetryAdapter(pool_connections=10, pool_maxsize=10, max_retries=3, pool_block=False)[source]

Create an adapter to use custom retry.

Constructor of the class.

Parameters:
  • pool_connections (int, optional) – The total amount of pool connections. Defaults to 10.

  • pool_maxsize (int, optional) – The max size of the pool. Defaults to 10.

  • max_retries (Union[Retry, int, None], optional) – The maximum number of retires. Defaults to 3.

  • pool_block (bool, optional) – If the pool should be blocked. Defaults to False.