@Override
    public @NonNull RestTemplate getRestTemplate(@NonNull HttpTask.Input input) {
        RestTemplate restTemplate = threadLocalRestTemplate.get();
        HttpComponentsClientHttpRequestFactory requestFactory =
                new HttpComponentsClientHttpRequestFactory();
        requestFactory.setConnectTimeout(
                Optional.ofNullable(input.getConnectionTimeOut()).orElse(defaultConnectTimeout));
        requestFactory.setReadTimeout(
                Optional.ofNullable(input.getReadTimeOut()).orElse(defaultReadTimeout));
        restTemplate.setRequestFactory(requestFactory);
        return restTemplate;
    }
Provider for a customized RestTemplateBuilder. This class provides a default {@link
RestTemplateBuilder} which can be configured or extended as needed.
http-task/src/main/java/com/netflix/conductor/tasks/http/providers/DefaultRestTemplateProvider.java