[4.0.9] HTTP2 not activating? #8828
-
For my web app, I made sure this dependency :
is included in my class path. Therefore, according to the 4.x docs this is enough to enable/trigger/upgrade to http2 protocol. Why? How can I enforce HTTP2 (maybe programmatically?) even for local testing with http://localhost:8080? Could not find anything in the examples... Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Support for HTTP/2 on the server is: <dependency>
<groupId>io.helidon.webserver</groupId>
<artifactId>helidon-webserver-http2</artifactId>
</dependency> To verify that it works, use a client that supports HTTP/2, such as
and you get similar answer (if it works):
(this is output based on Helidon 4.0.9 quickstart with added HTTP/2 server library) |
Beta Was this translation helpful? Give feedback.
-
When using TLS ( |
Beta Was this translation helpful? Give feedback.
-
For anyone needing to test http2 via Chrome in a local dev machine without the hassle:
|
Beta Was this translation helpful? Give feedback.
@tomas-langer I might have found the answer to my own question: Browsers do not support http2 over unencrypted connection, so I need to use https, certificates, etc. even for localhost testing! Ugh...