This PR adds the feature described in #33380.
The configuration of the maximum size of the HTTP response header is only available on Tomcat and Jetty. That's why the configuration is only implemented for these two servers.
Besides the implementation the tests and smoke tests are extended.
Comment From: mhalbritter
Thank you very much for your contribution.
I had to polish the PR quite a bit. For the next time, please take a look at our documentation how to set up your IDE. This way the imports, code style etc. will all be taken care of.
Comment From: mhalbritter
I somehow lost the merge commit. It's in main, https://github.com/spring-projects/spring-boot/commit/93d46d11e91d21ccbe2e5b451c051e9efdc57b2d
Comment From: aamotharald
Hi @michaelweidmann @mhalbritter , can you also take care that we get the server.max-http-response-header-size property documented? Like -not existing yet: server.max-http-response-header-size
Would be great once 3.4.x is released
Comment From: fstorz
@aamotharald there is no property server.max-http-response-header-size. Still, rather there are server implementation specific ones for Tomcat & Jetty. Undertow & Netty do not support the configuration of a max response header size.
Comment From: mhalbritter
Thanks @fstorz, that's correct.