public static Http2Headers toNettyHttp2(HttpHeaders inputHeaders){
  final Http2Headers outputHeaders=new DefaultHttp2Headers(false,inputHeaders.size());
  outputHeaders.set(inputHeaders);
  outputHeaders.remove(HttpHeaderNames.CONNECTION);
  outputHeaders.remove(HttpHeaderNames.TRANSFER_ENCODING);
  outputHeaders.remove(HttpHeaderNames.TRAILER);
  return outputHeaders;
}

public static Http2Headers toNettyHttp2 ( HttpHeaders inputHeaders ) { final Http2Headers outputHeaders = new DefaultHttp2Headers ( false , inputHeaders . size ( ) ) ; outputHeaders . set ( inputHeaders ) ; outputHeaders . remove ( HttpHeaderNames . CONNECTION ) ; outputHeaders . remove ( HttpHeaderNames . TRANSFER_ENCODING ) ; outputHeaders . remove ( HttpHeaderNames . TRAILER ) ; return outputHeaders ; }
converts the specified armeria http / 2 headers into netty http / 2 headers .
