Search in sources :

Example 1 with EzyProcessor.processWithLogException

use of com.tvd12.ezyfox.util.EzyProcessor.processWithLogException in project ezyhttp by youngmonkeys.

the class HttpClientProxyTest method newClientProxy.

private HttpClientProxy newClientProxy() {
    HttpClientProxy sut = HttpClientProxy.builder().autoStart(true).readTimeout(15000).connectTimeout(15000).setStringConverter(SingletonStringDeserializer.getInstance()).addBodyConverter(new TestBodyConverter()).addBodyConverters(Collections.singletonList(new TestBodyConverter())).addBodyConverter("world", new TestBodyConverter()).addBodyConverters(Collections.singletonMap("foo", new TestBodyConverter())).threadPoolSize(1).requestQueueCapacity(10).build();
    EzyProcessor.processWithLogException(sut::start);
    return sut;
}
Also used : HttpClientProxy(com.tvd12.ezyhttp.client.HttpClientProxy)

Aggregations

HttpClientProxy (com.tvd12.ezyhttp.client.HttpClientProxy)1