Request for comment (RFC) on potential feature:
Allow predicate with signature Callable[[int], bool] to be used for status_forcelist.
This can allow a user to add range of status codes without explicitly enumerating them.
Example:
from httpx_retries import Retry
def is_5XX_status(code: int) -> bool:
return code >= 500
rules = Retry(status_forcelist=is_5XX_status)
Request for comment (RFC) on potential feature:
Allow predicate with signature
Callable[[int], bool]to be used forstatus_forcelist.This can allow a user to add range of status codes without explicitly enumerating them.
Example: