<div dir="ltr">Thanks! Is it related to HTTP2, SPDY or both protocols?<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-01-12 23:00 GMT+01:00 Stuart Douglas <span dir="ltr">&lt;<a href="mailto:sdouglas@redhat.com" target="_blank">sdouglas@redhat.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This is implemented in Undertow 1.2:<br>
<br>
<a href="https://github.com/undertow-io/undertow/blob/master/core/src/main/java/io/undertow/server/ServerConnection.java#L230" target="_blank">https://github.com/undertow-io/undertow/blob/master/core/src/main/java/io/undertow/server/ServerConnection.java#L230</a><br>
<br>
The reverse proxy also supports this, so pushed responses from the back end will be pushed onwards to the client.<br>
<br>
We also have a handler that attempts to learn what resources are needed for each request and push automatically:<br>
<br>
<a href="https://github.com/undertow-io/undertow/blob/master/core/src/main/java/io/undertow/server/handlers/LearningPushHandler.java" target="_blank">https://github.com/undertow-io/undertow/blob/master/core/src/main/java/io/undertow/server/handlers/LearningPushHandler.java</a><br>
<br>
Stuart<br>
<div><div class="h5"><br>
----- Original Message -----<br>
&gt; From: &quot;Guillaume Drouet&quot; &lt;<a href="mailto:guidrouet@gmail.com">guidrouet@gmail.com</a>&gt;<br>
&gt; To: <a href="mailto:undertow-dev@lists.jboss.org">undertow-dev@lists.jboss.org</a><br>
&gt; Sent: Tuesday, 13 January, 2015 8:52:38 AM<br>
&gt; Subject: [undertow-dev] [SPDY/HTTP2] How to use server push<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; I&#39;m curious to know if Undertow already provides an API which allows to push<br>
&gt; static resources thanks to SPDY and/or HTTP2 protocol.<br>
&gt;<br>
&gt; For example, jetty provides this kind of API for SPDY:<br>
&gt; <a href="http://www.eclipse.org/jetty/documentation/9.2.2.v20140723/spdy-implementing-push.html" target="_blank">http://www.eclipse.org/jetty/documentation/9.2.2.v20140723/spdy-implementing-push.html</a><br>
&gt;<br>
&gt; I did not find any equivalent for Undertow.<br>
&gt;<br>
&gt; Thanks!<br>
&gt;<br>
&gt; --<br>
&gt; Guillaume DROUET<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; undertow-dev mailing list<br>
&gt; <a href="mailto:undertow-dev@lists.jboss.org">undertow-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/undertow-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/undertow-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Guillaume DROUET</div>
</div>