From bf6025303b35a0e59b8dacb7b057292bdfc624e2 Mon Sep 17 00:00:00 2001 From: Brian Clozel Date: Tue, 24 Oct 2017 11:41:51 +0200 Subject: [PATCH] Start documenting HTTP/2 support A new HTTP/2 support section has been added in the Spring MVC documentation. Also, a dedicated wiki page is created for specific container support information. Issue: SPR-15821 --- src/docs/asciidoc/web/webmvc.adoc | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/docs/asciidoc/web/webmvc.adoc b/src/docs/asciidoc/web/webmvc.adoc index e16e59752ae..ee75741bf58 100644 --- a/src/docs/asciidoc/web/webmvc.adoc +++ b/src/docs/asciidoc/web/webmvc.adoc @@ -4804,3 +4804,27 @@ detected through a `` declaration. include::webmvc-view.adoc[leveloffset=+1] + + + +[[mvc-http2]] +== HTTP/2 support + + +[[mvc-http2-servlet4]] +=== Servlet 4 support + +Spring MVC supports the Servlet 4 API; of course, the chosen Servlet container must support +that API in the first place. + +It is now possible to inject a `javax.servlet.http.PushBuilder` +as a Controller method argument for pushing HTTP/2 resources programmatically. +Note that per Servlet spec, the injected `PushBuilder` instance can be null if the client +does not support that HTTP/2 feature. See <>. + +[[mvc-http2-container]] +=== Container configuration + +For more information on how to configure your Servlet container for HTTP/2, please check +out the https://github.com/spring-projects/spring-framework/wiki/HTTP-2-support[dedicated +wiki page on HTTP/2 support]. \ No newline at end of file