Home / Function/ testHttp304Response() — netty Function Reference

testHttp304Response() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/HttpContentEncoderTest.java lines 312–325

    @Test
    public void testHttp304Response() throws Exception {
        EmbeddedChannel ch = new EmbeddedChannel(new TestEncoder());
        HttpRequest req = new DefaultFullHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.GET, "/");
        req.headers().set(HttpHeaderNames.ACCEPT_ENCODING, HttpHeaderValues.GZIP);
        ch.writeInbound(req);

        HttpResponse res = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.NOT_MODIFIED);
        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 testHttp304Response() do?
testHttp304Response() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpContentEncoderTest.java.
Where is testHttp304Response() defined?
testHttp304Response() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpContentEncoderTest.java at line 312.
What does testHttp304Response() call?
testHttp304Response() 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