Home / Function/ testOversizedRequestWith100ContinueAndDecoderCloseConnection() — netty Function Reference

testOversizedRequestWith100ContinueAndDecoderCloseConnection() — netty Function Reference

Architecture documentation for the testOversizedRequestWith100ContinueAndDecoderCloseConnection() function in HttpObjectAggregatorTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  3b01ecb2_4045_c0e4_0c4e_560be4ec51c6["testOversizedRequestWith100ContinueAndDecoderCloseConnection()"]
  32ca569a_2b67_1114_bbc8_cbf703c91b95["HttpObjectAggregatorTest"]
  3b01ecb2_4045_c0e4_0c4e_560be4ec51c6 -->|defined in| 32ca569a_2b67_1114_bbc8_cbf703c91b95
  style 3b01ecb2_4045_c0e4_0c4e_560be4ec51c6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/HttpObjectAggregatorTest.java lines 525–542

    @Test
    public void testOversizedRequestWith100ContinueAndDecoderCloseConnection() {
        EmbeddedChannel embedder = new EmbeddedChannel(new HttpRequestDecoder(), new HttpObjectAggregator(4, true));
        embedder.writeInbound(Unpooled.copiedBuffer(
                "PUT /upload HTTP/1.1\r\n" +
                        "Expect: 100-continue\r\n" +
                        "Content-Length: 100\r\n\r\n", CharsetUtil.US_ASCII));

        assertNull(embedder.readInbound());

        FullHttpResponse response = embedder.readOutbound();
        assertEquals(HttpResponseStatus.REQUEST_ENTITY_TOO_LARGE, response.status());
        assertEquals("0", response.headers().get(HttpHeaderNames.CONTENT_LENGTH));

        // We are forcing the connection closed if an expectation is exceeded.
        assertFalse(embedder.isOpen());
        assertFalse(embedder.finish());
    }

Domain

Subdomains

Frequently Asked Questions

What does testOversizedRequestWith100ContinueAndDecoderCloseConnection() do?
testOversizedRequestWith100ContinueAndDecoderCloseConnection() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpObjectAggregatorTest.java.
Where is testOversizedRequestWith100ContinueAndDecoderCloseConnection() defined?
testOversizedRequestWith100ContinueAndDecoderCloseConnection() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpObjectAggregatorTest.java at line 525.

Analyze Your Own Codebase

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

Try Supermodel Free