testBadRequest() — netty Function Reference
Architecture documentation for the testBadRequest() function in HttpObjectAggregatorTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 7a7c2cf0_1fcb_9fd2_b8da_ed3eb353ad1e["testBadRequest()"] 32ca569a_2b67_1114_bbc8_cbf703c91b95["HttpObjectAggregatorTest"] 7a7c2cf0_1fcb_9fd2_b8da_ed3eb353ad1e -->|defined in| 32ca569a_2b67_1114_bbc8_cbf703c91b95 style 7a7c2cf0_1fcb_9fd2_b8da_ed3eb353ad1e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/HttpObjectAggregatorTest.java lines 364–373
@Test
public void testBadRequest() {
EmbeddedChannel ch = new EmbeddedChannel(new HttpRequestDecoder(), new HttpObjectAggregator(1024 * 1024));
ch.writeInbound(Unpooled.copiedBuffer("GET / HTTP/1.0 with extra\r\n", CharsetUtil.UTF_8));
Object inbound = ch.readInbound();
assertInstanceOf(FullHttpRequest.class, inbound);
assertTrue(((DecoderResultProvider) inbound).decoderResult().isFailure());
assertNull(ch.readInbound());
ch.finish();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testBadRequest() do?
testBadRequest() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpObjectAggregatorTest.java.
Where is testBadRequest() defined?
testBadRequest() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpObjectAggregatorTest.java at line 364.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free