public static Function<? super HttpClient, RetryingClient>
    newDecoratorWithMapping(RetryConfigMapping<HttpResponse> mapping) {
        return builderWithMapping(mapping).newDecorator();
    }
Creates a new {@link HttpClient} decorator that handles failures of an invocation and retries HTTP
requests.

@param mapping the mapping that returns a {@link RetryConfig} for a given {@link ClientRequestContext}
       and {@link Request}.
core/src/main/java/com/linecorp/armeria/client/retry/RetryingClient.java