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

Open
#1,880 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
java
Domain
api

Research direction

Start by reading google-http-client/src/main/java/com/google/api/client/http/javanet/NetHttpTransport.java and the linked java.net.http package documentation, then compare the existing transport options. Done would require a clear evaluation of whether java.net.http.HttpClient should be supported and what scope that work entails; no tests or implementation entry point are named.

Written by the indexing model from the issue text.

Description

priority: p3 type: feature request

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?

Dominant language
Java
Stars
1.4k
Forks
476
Avg merge
10h 47m
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from googleapis/google-http-java-client

All issues in googleapis/google-http-java-client

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.