@Deprecated
    public static Function<? super HttpClient, RetryingClient>
    newDecorator(RetryRuleWithContent<HttpResponse> retryRuleWithContent, int maxTotalAttempts,
                 long responseTimeoutMillisForEachAttempt) {
        return builder(retryRuleWithContent)
                .maxTotalAttempts(maxTotalAttempts)
                .responseTimeoutMillisForEachAttempt(responseTimeoutMillisForEachAttempt)
                .newDecorator();
    }
Creates a new {@link HttpClient} decorator with the specified {@link RetryRuleWithContent} that
handles failures of an invocation and retries HTTP requests.

@param retryRuleWithContent the retry rule
@param maxTotalAttempts the maximum number of total attempts
@param responseTimeoutMillisForEachAttempt response timeout for each attempt. {@code 0} disables
                                           the timeout

@deprecated Use {@link #newDecorator(RetryConfig)} instead.
core/src/main/java/com/linecorp/armeria/client/retry/RetryingClient.java