private static Http2ConnectionEncoder encoder(Http2Connection connection) {
        Http2FrameWriter writer = new DefaultHttp2FrameWriter();
        writer = new Http2OutboundFrameLogger(writer, frameLogger);
        return new DefaultHttp2ConnectionEncoder(connection, writer);
    }
A handler that closes an HTTP/2 connection when the server responds with an HTTP/1 response, so that
HTTP/1 is used instead of HTTP/2 on next connection attempt.
core/src/main/java/com/linecorp/armeria/client/HttpClientPipelineConfigurator.java