marsxpl commented on code in PR #14:
URL:
https://github.com/apache/sling-org-apache-sling-connection-timeout-agent/pull/14#discussion_r2375406899
##########
src/test/java/org/apache/sling/cta/impl/HttpClientLauncher.java:
##########
@@ -16,16 +16,9 @@
*/
package org.apache.sling.cta.impl;
-import java.io.BufferedReader;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.net.HttpURLConnection;
-import java.net.URL;
-import java.time.Duration;
-import java.util.EnumSet;
-import java.util.stream.Collectors;
-
+import okhttp3.OkHttpClient;
Review Comment:
done
##########
src/test/java/org/apache/sling/cta/impl/HttpClientLauncher.java:
##########
@@ -42,20 +35,31 @@
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;
-import okhttp3.OkHttpClient;
-import okhttp3.Request;
-import okhttp3.Response;
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.net.HttpURLConnection;
+import java.net.URI;
+import java.net.URISyntaxException;
+import java.net.URL;
+import java.net.http.HttpRequest;
+import java.net.http.HttpResponse;
+import java.time.Duration;
+import java.util.EnumSet;
+import java.util.stream.Collectors;
/**
* CLI interface to run HTTP clients
*/
public class HttpClientLauncher {
public enum ClientType {
- JavaNet(HttpClientLauncher::runUsingJavaNet),
Review Comment:
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]