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

Retry-After support #579

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

g-a-c
Copy link

@g-a-c g-a-c commented Sep 24, 2019

Per RFC 6585 support returning a Retry-After header to test HTTP clients repeating requests.

MDN1 says this can be returned in either an "absolute" format (Retry-After contains a fixed date) or "relative" format (Retry-After contains a number of seconds after which the request may be retried). Both formats are supported in this commit.

Per RFC 6585 support returning a Retry-After header to test HTTP clients repeating requests.

MDN[1] says this can be returned in either an "absolute" format (Retry-After contains a fixed date) or "relative" format (Retry-After contains a number of seconds after which the request may be retried). Both formats are supported in this commit.

[1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After
When pushing the Retry-After changes, tox was failing on unit tests that worked on my system running from Pycharm CE. It seems that the reason for this is that the pipenv environment for the repo uses an older version of werkzeug (which in turn relies on an older version of flask). Adding the same fixed versions to tox.ini allows the tox tests to pass on my system so should pass on Travis too.
@g-a-c g-a-c requested a review from kennethreitz February 13, 2020 11:08
they now make more sense in English:
"retry after 60 seconds, returned as a date"
"retry after 60 seconds, returned as a number of seconds"
@g-a-c g-a-c force-pushed the feature/retry-after branch from 898aa95 to a8fd89f Compare February 17, 2020 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant