Example usage for io.netty.handler.codec.http2 DefaultHttp2ResetFrame DefaultHttp2ResetFrame

List of usage examples for io.netty.handler.codec.http2 DefaultHttp2ResetFrame DefaultHttp2ResetFrame

Introduction

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

Prototype

public DefaultHttp2ResetFrame(long errorCode) 

Source Link

Document

Construct a reset message.

Usage

From source file:org.wso2.carbon.inbound.endpoint.protocol.http2.Http2FrameListenAdapter.java

License:Open Source License

@Override
public void onRstStreamRead(ChannelHandlerContext ctx, int streamId, long errorCode) throws Http2Exception {
    ctx.fireChannelRead(new DefaultHttp2ResetFrame(errorCode).setStreamId(streamId));
}