private static void purgeHttp1OnlyHeaders(io.netty.handler.codec.http.HttpHeaders inHeaders,
                                             HttpHeadersBuilder out) {
        //TODO(minwoox): dedup the logic between these method and toArmeria
        maybeSetTeHeader(inHeaders, out);
        maybeRemoveConnectionHeaders(inHeaders, out);
        maybeSetCookie(inHeaders, out);
        maybeSetContentLengthUnknown(inHeaders.contains(HttpHeaderNames.CONTENT_LENGTH), out);
    }
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