googleapis / googleapis/google-http-java-client

Evaluate the java.net.http.HttpClient as HTTP client backend

Open
#1,880 0 comments 3 reactions 0 assignees View on GitHub
priority: p3 type: feature request
Dominant language
Java
Stars
1.4k
Forks
473
PR merge metrics
No merged PRs in 30d

Description

Since Java 11, JDK already provides HTTP client.

https://docs.oracle.com/en/java/javase/21/docs/api/java.net.http/java/net/http/package-summary.html

This google-http-java-client has NetHttpTransport:

https://github.com/googleapis/google-http-java-client/blob/13edd1357eb79535d943f5288ab3adf4d9dfb52a/google-http-client/src/main/java/com/google/api/client/http/javanet/NetHttpTransport.java#L55

It also provides an option to use Apache HTTP client 4.x.

Would another option to use the new `java.net.http.HttpClient` help library users?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.