Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an Example for automatic retries to the Advanced Usage docs #6258

Merged

Commits on May 11, 2023

  1. Add an Example for automatic retries to the Advanced Usage docs

    - While Requests doesn't automatically retry failures, this ability is a very common advanced use case in real world applications.
    - Although there's a mention of this ability on the HTTPAdapter class docs, it's a bit buried and not very specific.
    - It makes sense then to have an Example in the HTTPAdapter section of the Advanced Usage docs with a basic template for how this can be accomplished with Requests.
    - Open questions:
    -- is the urllib3.util.Retry import appropriate? I've seen some SO posts which import it from requests.adapters (even though that's just referring to urllib3)
    matthewarmand committed May 11, 2023
    Configuration menu
    Copy the full SHA
    4709399 View commit details
    Browse the repository at this point in the history