@@ -0,0 +1,1130 @@
+package com.suse.salt.netapi.utils;%0A%0Aimport org.apache.http.client.config.CookieSpecs;%0Aimport org.apache.http.client.config.RequestConfig;%0Aimport org.apache.http.impl.nio.client.CloseableHttpAsyncClient;%0Aimport org.apache.http.impl.nio.client.HttpAsyncClientBuilder;%0Aimport org.apache.http.impl.nio.client.HttpAsyncClients;%0A%0A/**%0A * Helpers for creating an async http client%0A */%0Apublic class HttpClientUtils %7B%0A%0A    /**%0A     * Creates a simple default http client%0A     * @return HttpAsyncClient%0A     */%0A    public static CloseableHttpAsyncClient defaultClient() %7B%0A        RequestConfig requestConfig = RequestConfig.custom()%0A                .setConnectionRequestTimeout(0)%0A                .setConnectTimeout(10000)%0A                .setSocketTimeout(20000)%0A                .setCookieSpec(CookieSpecs.STANDARD)%0A                .build();%0A        HttpAsyncClientBuilder httpClientBuilder = HttpAsyncClients.custom();%0A        httpClientBuilder.setDefaultRequestConfig(requestConfig);%0A%0A        CloseableHttpAsyncClient asyncHttpClient = httpClientBuilder.build();%0A        asyncHttpClient.start();%0A        return asyncHttpClient;%0A    %7D%0A%0A%7D%0A

add helper for simple async http client config