public class ResponseHeaderStrategy extends Object implements RateLimitStrategy
| Constructor and Description |
|---|
ResponseHeaderStrategy() |
| Modifier and Type | Method and Description |
|---|---|
Duration |
apply(HttpClientResponse response)
Apply this function to a
HttpClientResponse to obtain a Duration representing a delay due to
rate limiting. |
public Duration apply(HttpClientResponse response)
RateLimitStrategyHttpClientResponse to obtain a Duration representing a delay due to
rate limiting.apply in interface RateLimitStrategyresponse - the original HttpClientResponseDuration indicating rate limiting, can be Duration.ZERO if no limit is present