private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services for sponsored feature development
Table of Contents
Jetty supports both a client and a server implementation for the HTTP/2 protocol as defined by RFC 7540.
The requirements for running HTTP/2 are JDK 8 or greater, and typically also ALPN support (see Chapter 14, ALPN).
A server deployed over TLS (SSL) normally advertises the HTTP/2 protocol via the TLS extension Application Layer Protocol Negotiation (ALPN).
To use HTTP/2 in Jetty via a TLS connector you need to add the ALPN boot Jar in the boot classpath. This is done automatically when using the jetty distributions start.jar module system, but must be configured directly otherwise.
The Jetty HTTP/2 implementation consists of the following sub-projects (each producing a jar):
http2-common: contains the HTTP/2 API and a partial implementation shared across other modules.
http2-hpack: contains the HTTP/2 HPACK implementation for HTTP header compression.
http2-server: provides the server-side implementation of HTTP/2.
http2-client: provides the implementation of HTTP/2 client with a low level HTTP/2 API, dealing with HTTP/2 streams, frames, etc.
http2-http-client-transport: provides the implementation of the HTTP/2 transport for
HttpClient(see Chapter 27, HTTP Client). Applications can use the higher level API provided by
HttpClientto send HTTP requests and receive HTTP responses, and the HTTP/2 transport will take care of converting them in HTTP/2 format (see also this blog entry).