Embedded Jetty server, started with a main() method, featuring a simple 'Hello, World!' Servlet with HTTP/2.
git clone https://github.com/fstab/http2-examples.git
cd http2-examples/jetty-http2-server-example
mvn packageIn order to run the examples, you need Jetty's ALPN boot JAR.
Start the server:
java -Xbootclasspath/p:<path-to-alpn-boot-VERSION.jar> -jar target/jetty-http2-server-example.jarPoint your browser to https://localhost:8443
Download and install the latest h2c release from github.com/fstab/h2c.
h2c get https://localhost:8443