eclipse-ee4j / eclipse-ee4j/jersey
Respecting `Retry-After` headers
Open
- Dominant language
- Java
- Stars
- 730
- Forks
- 382
- PR merge metrics
- No merged PRs in 30d
Description
I've asked on the mailing list but got no response, so I'm trying my luck here.
How does one go about respecting rate-limited `429 Too Many Requests` responses with Jersey clients? Specifically making the client wait the period of time that was indicated in the `Retry-After` response header, before making the next request?
I imagine this requires some client-wide code because a request-scoped filter alone would not be able to deal with this.
I'm using the Jersey 3.1.0 client with `ApacheConnectorProvider` (Apache HTTP Client 4.5.13 I think).
Contributor guide
Assessment
This issue has not been assessed yet.