use of com.predic8.membrane.core.transport.http.client.ConnectionConfiguration in project service-proxy by membrane.
the class HttpKeepAliveTest method createHttpClient.
private HttpClient createHttpClient(int defaultKeepAliveTimeout) {
HttpClientConfiguration configuration = new HttpClientConfiguration();
ConnectionConfiguration connection = new ConnectionConfiguration();
connection.setKeepAliveTimeout(defaultKeepAliveTimeout);
configuration.setConnection(connection);
HttpClient client = new HttpClient(configuration);
return client;
}
Aggregations