private static void maybeSetCookie(io.netty.handler.codec.http.HttpHeaders inHeaders,
                                       HttpHeadersBuilder out) {
        // Cookies must be concatenated into a single octet string.
        // https://datatracker.ietf.org/doc/html/rfc7540#section-8.1.2.5
        if (out.contains(HttpHeaderNames.COOKIE)) {
            final StringJoiner cookieJoiner = new StringJoiner(COOKIE_SEPARATOR);
            inHeaders.getAll(HttpHeaderNames.COOKIE).forEach(
                    value -> COOKIE_SPLITTER.split(value).forEach(cookieJoiner::add));
            out.set(HttpHeaderNames.COOKIE, cookieJoiner.toString());
        }
    }
Removes HTTP/1 specified headers from a mutable headers map.
Functionally this method is expected to behave the same as
{@link #toArmeria(io.netty.handler.codec.http.HttpHeaders, HttpHeadersBuilder)}.
This method should be preferred going forward as we continue implementing zero-copy
for HTTP1 en/decoders.
core/src/main/java/com/linecorp/armeria/internal/common/ArmeriaHttpUtil.java