Home / Function/ testEmptyHeadResponse() — netty Function Reference

testEmptyHeadResponse() — netty Function Reference

Architecture documentation for the testEmptyHeadResponse() function in HttpContentEncoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  f349aaac_aa94_f641_ee74_5532ba3e7472["testEmptyHeadResponse()"]
  992a26d3_2083_aeb8_4785_63c545814355["HttpContentEncoderTest"]
  f349aaac_aa94_f641_ee74_5532ba3e7472 -->|defined in| 992a26d3_2083_aeb8_4785_63c545814355
  fc64dfe0_a6f0_1908_5cc5_0108bdca8acf["assertEmptyResponse()"]
  f349aaac_aa94_f641_ee74_5532ba3e7472 -->|calls| fc64dfe0_a6f0_1908_5cc5_0108bdca8acf
  style f349aaac_aa94_f641_ee74_5532ba3e7472 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/HttpContentEncoderTest.java lines 298–310

    @Test
    public void testEmptyHeadResponse() throws Exception {
        EmbeddedChannel ch = new EmbeddedChannel(new TestEncoder());
        HttpRequest req = new DefaultFullHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.HEAD, "/");
        ch.writeInbound(req);

        HttpResponse res = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK);
        res.headers().set(HttpHeaderNames.TRANSFER_ENCODING, HttpHeaderValues.CHUNKED);
        ch.writeOutbound(res);
        ch.writeOutbound(LastHttpContent.EMPTY_LAST_CONTENT);

        assertEmptyResponse(ch);
    }

Domain

Subdomains

Frequently Asked Questions

What does testEmptyHeadResponse() do?
testEmptyHeadResponse() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpContentEncoderTest.java.
Where is testEmptyHeadResponse() defined?
testEmptyHeadResponse() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpContentEncoderTest.java at line 298.
What does testEmptyHeadResponse() call?
testEmptyHeadResponse() calls 1 function(s): assertEmptyResponse.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free