ru.tinkoff.kora.http.client.jdk.JdkHttpClientConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http-client-jdk Show documentation
Show all versions of http-client-jdk Show documentation
Kora http-client-jdk module
package ru.tinkoff.kora.http.client.jdk;
import ru.tinkoff.kora.config.common.annotation.ConfigValueExtractor;
import java.net.http.HttpClient;
@ConfigValueExtractor
public interface JdkHttpClientConfig {
default boolean followRedirects() {
return true;
}
default int threads() {
return Runtime.getRuntime().availableProcessors() * 2;
}
default HttpClient.Version httpVersion() {
return HttpClient.Version.HTTP_1_1;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy