You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Schönwald, Oliver" <ol...@fernuni-hagen.de> on 2022/03/10 17:09:27 UTC
Tomcat 9 and request.newPushBuilder()
Dear Community,
I have begun to change my web application to support http/2.
When preparing the push mechanism my application catches a NullPointerException, oh my.
So I took a look into the Tomcat Sources and, surprise, the current implementation of HttpServletRequest always returns null.
So far I could only find examples using .newPushBuilder() that claim to really work using installations of GlassFish 5.
I wonder if there is there some way to use push with Tomcat 9 currently?
Best regards
Oliver Schoenwald
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 9 and request.newPushBuilder()
Posted by Mark Thomas <ma...@apache.org>.
On 10/03/2022 17:09, Schönwald, Oliver wrote:
> Dear Community,
>
> I have begun to change my web application to support http/2.
>
> When preparing the push mechanism my application catches a NullPointerException, oh my.
>
> So I took a look into the Tomcat Sources and, surprise, the current implementation of HttpServletRequest always returns null.
No, it doesn't.
All currently supported Tomcat versions support HTTP/2 server push
(although you'll need to cast to internal classes in 8.5.x as the
Servlet 3.1 API doesn't support HTTP/2).
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org