@Deprecated
    public static Function<? super HttpClient, RetryingClient>
    newDecorator(RetryRuleWithContent<HttpResponse> retryRuleWithContent, int maxTotalAttempts) {
        return builder(retryRuleWithContent).maxTotalAttempts(maxTotalAttempts).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 allowed number of total attempts

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