code: public static HttpHeaders toArmeria(Http2Headers headers, boolean endOfStream) {
          final HttpHeaders converted = new DefaultHttpHeaders(false, headers.size(), endOfStream);
          StringJoiner cookieJoiner = null;
          for (Entry<CharSequence, CharSequence> e : headers) {
              final AsciiString name = HttpHeaderNames.of(e.getKey());
              final CharSequence value = e.getValue();
  
              // Cookies must be concatenated into a single octet string.
              // https://tools.ietf.org/html/rfc7540#section-8.1.2.5
              if (name.equals(HttpHeaderNames.COOKIE)) {
                  if (cookieJoiner == null) {
                      cookieJoiner = new StringJoiner(COOKIE_SEPARATOR);
                  }
                  COOKIE_SPLITTER.split(value).forEach(cookieJoiner::add);
              } else {
                  converted.add(name, convertHeaderValue(name, value));
              }
          }
  
          if (cookieJoiner != null && cookieJoiner.length() != 0) {
              converted.add(HttpHeaderNames.COOKIE, cookieJoiner.toString());
          }
  
          return converted;
      }
docs: Converts the specified Netty HTTP/2 into Armeria HTTP/2 headers.