Skip to content

Commit bf60253

Browse files
committed
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
1 parent 6457a15 commit bf60253

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/docs/asciidoc/web/webmvc.adoc

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4804,3 +4804,27 @@ detected through a `<component scan/>` declaration.
48044804

48054805

48064806
include::webmvc-view.adoc[leveloffset=+1]
4807+
4808+
4809+
4810+
[[mvc-http2]]
4811+
== HTTP/2 support
4812+
4813+
4814+
[[mvc-http2-servlet4]]
4815+
=== Servlet 4 support
4816+
4817+
Spring MVC supports the Servlet 4 API; of course, the chosen Servlet container must support
4818+
that API in the first place.
4819+
4820+
It is now possible to inject a `javax.servlet.http.PushBuilder`
4821+
as a Controller method argument for pushing HTTP/2 resources programmatically.
4822+
Note that per Servlet spec, the injected `PushBuilder` instance can be null if the client
4823+
does not support that HTTP/2 feature. See <<mvc-ann-arguments>>.
4824+
4825+
[[mvc-http2-container]]
4826+
=== Container configuration
4827+
4828+
For more information on how to configure your Servlet container for HTTP/2, please check
4829+
out the https://github.com/spring-projects/spring-framework/wiki/HTTP-2-support[dedicated
4830+
wiki page on HTTP/2 support].

0 commit comments

Comments
 (0)