Jetty provides a Web server and javax.servlet container, plus support for HTTP/2, WebSocket and many other integrations.
- Jetty Server
<dependency>
<groupId>org.jooby</groupId>
<artifactId>jooby-jetty</artifactId>
<version>1.2.3</version>
</dependency>In order to use a web server all you have to do is add the dependency to your build system. Jooby will find the server and start it.
HTTP/2 is fully supported:
| H2 | H2C | PUSH |
| --------- | ------------- | ----- |
| Yes | Yes | Yes |
You need to add alpn-boot to the JVM bootstrap path. See Jetty HTTP2 documentation.