By default, the services built on top of light platform have HTTP 2.0 enabled automatically
right of the light-codegen. The server also support HTTP 1.1 connection if the client cannot
negotiate HTTP 2.0 with the server.
There are a lot of benefits with HTTP 2.0 but JDK 8 and below doesn’t support natively. Though
there are some workarounds, none of them is a practical solution. Given the situation, we have
built client module based on Undertow core for HTTP 2.0 support.
Here are some links regarding to HTTP 2.0 and HTTP 1.1
If you are sure that the service is built on light-4j and HTTP 2.0 is not disabled. Then you should
use HTTP 2.0 from consumer side to enjoy the fast speed and single connection multiplexing.
Other Java HTTP Client
Most Java HTTP Client don’t support HTTP 2.0 or you have to find a workaround to do that with
bootclasspath jar file per version of JDK on Java 8. If you are using Java 9, then it has native
support for HTTP 2.0; however, it is never been tested with the foundation framework.