Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

jetty-http2-server-example

Embedded Jetty server, started with a main() method, featuring a simple 'Hello, World!' Servlet with HTTP/2.

How to Run

git clone https://github.com/fstab/http2-examples.git
cd http2-examples/jetty-http2-server-example
mvn package

In 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.jar

Test using Web Browser

Point your browser to https://localhost:8443

Test using h2c

Download and install the latest h2c release from github.com/fstab/h2c.

h2c get https://localhost:8443