Server Push One highlight feature of HTTP/2 is Server Push. Servlet 4.0 add PushBuilder to handle push. An exmaple of enable Servlet Push. @WebServlet ( urlPatterns = " " ) @ServletSecurity ( httpMethodConstraints = { @HttpMethodConstraint ( value = " GET " , transportGuarantee = CONFIDENTIAL ) }) public class PushServlet extends HttpServlet { @Override protected void doGet ( HttpServletRequest req , HttpServletResponse res ) throws IOException , ServletException { PushBuilder pushBuilder = req . newPushBuilder() . path( " main.css " ); pushBuilder . push(); res . getWriter() . println( " <html><head><title>HTTP2 Test</title><link rel= \" stylesheet \" href= \" main.css \" ></head><body>Hello Servlet Push!!!</body></html> " ); } } Run this application on Glassfish v5 in NetBeans ID...