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

kmartin/Add support for RFC1123 Date/Time in Retry-After header. #130

Conversation

kevinmartin
Copy link

What?

  • The Retry-After header can have a numerical value that denotes how long a client should wait before retrying or a date/time value that denotes when a client a client should retry.
  • This PR adds the ability to attempt to parse a date/time value if it is non-numerical.

@hashicorp-cla
Copy link

hashicorp-cla commented Mar 25, 2021

CLA assistant check
All committers have signed the CLA.

@palczyn
Copy link

palczyn commented Sep 16, 2021

Hey, is this feature going to be merged soon?

@justenwalker
Copy link
Contributor

I opened #144 for discussion about the feature. Given that there are now 3 PRs that accomplish the same thing, we should probably consolidate discussion in a single place.

@manicminer
Copy link
Member

@kevinmartin Thanks for submitting this PR. I appreciate this has been outstanding for a long time, however I'm going to merge #138 for this functionality as that has additional safety checks on the resulting duration after parsing. Thanks again for working on this.

@manicminer manicminer closed this May 9, 2024
@manicminer
Copy link
Member

Duplicate of #138

@manicminer manicminer marked this as a duplicate of #138 May 9, 2024
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.

None yet

5 participants