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

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

Introduction

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

Prototype

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

Source Link

Document

Set a custom frame handler.

Usage

From source file:examples.HTTP2Examples.java

License:Open Source License

public void example1(HttpServerRequest request) {

    request.customFrameHandler(frame -> {

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