Doc improvements on push

This commit is contained in:
Julien Viet
2016-04-06 13:32:02 +02:00
parent 5d69d26d51
commit 13c13a7200
3 changed files with 14 additions and 0 deletions

View File

@@ -95,8 +95,10 @@ public class HTTP2Examples {
// Push main.js to the client
response.push(HttpMethod.GET, "/main.js", ar -> {
if (ar.succeeded()) {
// The server is ready to push the response
HttpServerResponse pushedResponse = ar.result();
// Send main.js response