io.github.openunirest.http.options.Options Maven / Gradle / Ivy
package io.github.openunirest.http.options;
import io.github.openunirest.http.async.utils.AsyncIdleConnectionMonitorThread;
import io.github.openunirest.http.exceptions.UnirestException;
import io.github.openunirest.http.utils.SyncIdleConnectionMonitorThread;
import org.apache.http.HttpHost;
import org.apache.http.HttpRequestInterceptor;
import org.apache.http.client.config.RequestConfig;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
import org.apache.http.impl.nio.client.CloseableHttpAsyncClient;
import org.apache.http.impl.nio.client.HttpAsyncClientBuilder;
import org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager;
import org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor;
import org.apache.http.nio.reactor.IOReactorException;
import java.io.Closeable;
import java.io.IOException;
import java.util.*;
import static io.github.openunirest.http.options.Option.COOKIE_MANAGEMENT;
import static io.github.openunirest.http.options.Option.FOLLOW_REDIRECTS;
public class Options {
public static final int MAX_TOTAL = 200;
public static final int MAX_PER_ROUTE = 20;
public static final int CONNECTION_TIMEOUT = 10000;
public static final int SOCKET_TIMEOUT = 60000;
private static boolean customClientSet = false;
private static boolean isRunning = false;
private static Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy