use of com.intellij.tasks.config.TaskSettings in project intellij-community by JetBrains.
the class NewBaseRepositoryImpl method createRequestConfig.
@NotNull
protected RequestConfig createRequestConfig() {
TaskSettings tasksSettings = TaskSettings.getInstance();
RequestConfig.Builder builder = RequestConfig.custom().setConnectTimeout(3000).setSocketTimeout(tasksSettings.CONNECTION_TIMEOUT);
if (isUseProxy()) {
IdeHttpClientHelpers.ApacheHttpClient4.setProxyForUrlIfEnabled(builder, getUrl());
}
return builder.build();
}
Aggregations