Skip to content

Adding support for X-RateLimit-Reset HTTP header#979

Closed
tandrup wants to merge 3 commits into
OpenFeign:masterfrom
tandrup:master
Closed

Adding support for X-RateLimit-Reset HTTP header#979
tandrup wants to merge 3 commits into
OpenFeign:masterfrom
tandrup:master

Conversation

@tandrup

@tandrup tandrup commented May 23, 2019

Copy link
Copy Markdown

Some services use the X-RateLimit-Reset HTTP header instead of the Retry-After header. Try to parse both.

@kdavisk6 kdavisk6 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tandrup

I like the idea, however, it may not appropriate for this to be applied automatically for all users. My preference would be to include a new ErrorDecoder implementation specifically for this use case. This will accomplish two things:

  • Provide support this use case for all users
  • Allow users to choose when to enable this support.

Thoughts?

@kdavisk6 kdavisk6 added enhancement For recommending new capabilities waiting for feedback Issues waiting for a response from either to the author or other maintainers labels May 28, 2019
@kdavisk6 kdavisk6 added this to the 10.3.0 milestone May 28, 2019
@kdavisk6 kdavisk6 added feedback provided Feedback has been provided to the author and removed waiting for feedback Issues waiting for a response from either to the author or other maintainers labels May 31, 2019
@kdavisk6 kdavisk6 removed this from the 10.3.0 milestone Jun 21, 2019

@velo velo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the change, just need to make it build on Travis

@kdavisk6

kdavisk6 commented Apr 6, 2020

Copy link
Copy Markdown
Member

@tandrup

The build for this PR is broken due to compilation errors. If you are still interested in submitting this change, please update this PR to allow the build to pass and we will accept it.

@velo velo closed this Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement For recommending new capabilities feedback provided Feedback has been provided to the author

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants