Support HTTP/1.1 and HTTP/2 with a JAX-RS client
Java HTTP client provided with Java 11 is supporting HTTP/1.1 and HTTP/2 (see Introduction to the Java HTTP Client).
I have built a connector using it Jersey Connector using java.net.http.HttpClient
.
You can use it adding the following dependency.
<dependency>
<groupId>com.github.nhenneaux.jersey.connector.httpclient</groupId>
<artifactId>jersey-httpclient-connector</artifactId>
<version>0.2.2</version>
</dependency>