An HTTP proxy that retries requests ending into 429 status code. Can also retry any other status code depending on the provided configuration.
- Deploy
retry429into your AWS:sam build && sam deploy --parameter-overrides "TargetHostTemplate=jsonplaceholder.typicode.com TargetProtocol=https RetriedHttpStatuses=429,503" --guided. Retry429HttpApiUrlnow proxies all HTTP calls tojsonplaceholder.typicode.com, and retries those that end into 429 and 503.
Tests are defined in the tests folder in this project. Use PIP to install the test dependencies and run tests.
$ pip install -r tests/requirements.txt --user
$ python -m pytest tests/unit -v