Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It is recommeded to use java.net.http.HttpClient with JDK11 or higher. #176

Open
conlaychan opened this issue Oct 10, 2023 · 0 comments
Open

Comments

@conlaychan
Copy link

The project and the author are both active no longer.
It is recommeded to use java.net.http.HttpClient with JDK11 or higher.

public static final HttpClient HTTP_CLIENT = HttpClient.newBuilder()
        .cookieHandler(new CookieManager())
        // If you are using JDK21 it is recommeded to use virtual thread.
        .executor(Executors.newCachedThreadPool(Thread.ofVirtual().name("HttpClient-v", 1).factory()))
        .build();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant