mirror of
https://github.com/jlengrand/vert.x.git
synced 2026-04-17 00:41:23 +00:00
Doc improvements on push
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user