public static void writeHttp2Headers ( ChannelHandlerContext ctx , Http2ConnectionEncoder encoder , HttpResponseFuture outboundRespStatusFuture , int streamId , Http2Headers http2Headers , boolean endStream ) throws Http2Exception { ChannelFuture channelFuture = encoder . writeHeaders ( ctx , streamId , http2Headers , 0 , endStream , ctx . newPromise ( ) ) ; encoder . flowController ( ) . writePendingBytes ( ) ; ctx . flush ( ) ; Util . addResponseWriteFailureListener ( outboundRespStatusFuture , channelFuture ) ; }
Writes HTTP2 headers to outbound response .