@ParameterizedTest
    @ArgumentsSource(ClientAndProtocolProvider.class)
    void testHeadHeadersOnly(WebClient client, SessionProtocol protocol) throws Exception {
        assumeThat(protocol).isSameAs(H1C);

        final int port = server.httpPort();
        try (Socket s = new Socket(NetUtil.LOCALHOST, port)) {
            s.setSoTimeout(10000);
            final InputStream in = s.getInputStream();
            final OutputStream out = s.getOutputStream();
            out.write("HEAD /head-headers-only HTTP/1.0\r\n\r\n".getBytes(StandardCharsets.US_ASCII));

            // Should neither be chunked nor have content.
            assertThat(new String(ByteStreams.toByteArray(in)))
                    .isEqualTo("HTTP/1.1 200 OK\r\n" +
                               "content-type: text/plain; charset=utf-8\r\n" +
                               "content-length: 6\r\n" +
                               "connection: close\r\n\r\n");
        }
    }
Similar to {@link #testTimeoutAfterPartialContent(WebClient)}, but tests the case where the service
produces a pooled buffers.
core/src/test/java/com/linecorp/armeria/server/HttpServerTest.java