Skip to content

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

@conlaychan

Description

@conlaychan

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();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions