code: public static Function<Client<HttpRequest, HttpResponse>, RetryingHttpClient>
      newDecorator(RetryStrategy retryStrategy) {
          return new RetryingHttpClientBuilder(retryStrategy).newDecorator();
      }
docs: Creates a new {@link Client} decorator that handles failures of an invocation and retries HTTP requests.
  
  @param retryStrategy the retry strategy