Example usage for io.netty.handler.codec.http2 HttpToHttp2ConnectionHandler encoder

List of usage examples for io.netty.handler.codec.http2 HttpToHttp2ConnectionHandler encoder

Introduction

In this page you can find the example usage for io.netty.handler.codec.http2 HttpToHttp2ConnectionHandler encoder.

Prototype

public Http2ConnectionEncoder encoder() 

Source Link

Usage

From source file:org.jooby.internal.netty.NettyPush.java

License:Apache License

public NettyPush(final ChannelHandlerContext ctx, final int streamId, final String authority,
        final String scheme) {
    this.ctx = ctx;
    HttpToHttp2ConnectionHandler handler = ctx.pipeline().get(HttpToHttp2ConnectionHandler.class);
    this.encoder = handler.encoder();
    this.streamId = streamId;
    this.authority = authority;
    this.scheme = scheme;
}