Kong / unirest-java

Unirest in Java: Simplified, lightweight HTTP client library.
http://kong.github.io/unirest-java/
MIT License
2.61k stars 594 forks source link

Support honoring Retry-After headers for 429, 503 and 301 in Async Methods #281

Closed ryber closed 8 months ago

ryber commented 5 years ago

Is your feature request related to a problem? Please describe. Support honoring Retry-After headers for 429, 503 and 301

Describe the solution you'd like When a server issues a 429, 503 or 301 with a Retry-After header the client is asked to wait that period (either a date, or a number of seconds). Enable Unirest to do this automatically

Questions to consider:

ryber commented 3 years ago

this is done for the regular requests. Apache's async methods really don't like making a request inside of making a request.

ryber commented 8 months ago

complete