Example usage for io.vertx.core.http HttpClientResponse customFrameHandler

List of usage examples for io.vertx.core.http HttpClientResponse customFrameHandler

Introduction

In this page you can find the example usage for io.vertx.core.http HttpClientResponse customFrameHandler.

Prototype

@Fluent
HttpClientResponse customFrameHandler(Handler<HttpFrame> handler);

Source Link

Document

Set an custom frame handler.

Usage

From source file:examples.HTTP2Examples.java

License:Open Source License

public void example15(HttpClientResponse response) {
    response.customFrameHandler(frame -> {

        System.out.println("Received a frame type=" + frame.type() + " payload" + frame.payload().toString());
    });/*from  w w  w. j a v  a  2  s.  c o  m*/
}