httpx
httpx module containing classes related to httpx.
RetryTransport ¶
Bases: httpx.HTTPTransport
httpx transport that enables retries in case of failed http requests.
Parameters:
-
retries
(
int) –Number of total retries if request is failing.
-
delay
(
int) –Delay between retries in seconds.
-
status_forcelist
(
typing.Optional[typing.List[int]]) –Response status that should trigger a retry.
-
allowed_methods
(
typing.Optional[typing.List[str]]) –HTTP methods for which retries are enabled.
handle_request ¶
Executes request and performs retries if necessary and enabled.