List of usage examples for io.netty.handler.codec.http2 HttpToHttp2ConnectionHandler encoder
public Http2ConnectionEncoder encoder()
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; }