Home / Function/ testResponseWithBadInitialLine() — netty Function Reference

testResponseWithBadInitialLine() — netty Function Reference

Architecture documentation for the testResponseWithBadInitialLine() function in HttpInvalidMessageTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  538e05cf_b95a_4967_6ed6_31da8b9b1eaa["testResponseWithBadInitialLine()"]
  9fcfe62b_bd7f_3212_a40b_cda45186b61b["HttpInvalidMessageTest"]
  538e05cf_b95a_4967_6ed6_31da8b9b1eaa -->|defined in| 9fcfe62b_bd7f_3212_a40b_cda45186b61b
  089c961b_dc5d_1623_f43c_45ebbfde8f6a["ensureInboundTrafficDiscarded()"]
  538e05cf_b95a_4967_6ed6_31da8b9b1eaa -->|calls| 089c961b_dc5d_1623_f43c_45ebbfde8f6a
  style 538e05cf_b95a_4967_6ed6_31da8b9b1eaa fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/HttpInvalidMessageTest.java lines 64–73

    @Test
    public void testResponseWithBadInitialLine() throws Exception {
        EmbeddedChannel ch = new EmbeddedChannel(new HttpResponseDecoder());
        ch.writeInbound(Unpooled.copiedBuffer("HTTP/1.0 BAD_CODE Bad Server\r\n", CharsetUtil.UTF_8));
        HttpResponse res = ch.readInbound();
        DecoderResult dr = res.decoderResult();
        assertFalse(dr.isSuccess());
        assertTrue(dr.isFailure());
        ensureInboundTrafficDiscarded(ch);
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free