testFullHttpRequest() — netty Function Reference
Architecture documentation for the testFullHttpRequest() function in HttpContentDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD e0f9ca74_1f15_9dd0_32d3_4493874f9cdd["testFullHttpRequest()"] ea4ec426_b689_ab52_a554_7959aed6c709["HttpContentDecoderTest"] e0f9ca74_1f15_9dd0_32d3_4493874f9cdd -->|defined in| ea4ec426_b689_ab52_a554_7959aed6c709 2b987b60_3929_ae39_9df4_c066360347d1["calculateContentLength()"] e0f9ca74_1f15_9dd0_32d3_4493874f9cdd -->|calls| 2b987b60_3929_ae39_9df4_c066360347d1 9551636f_107c_5525_c2ac_6930ab7aab64["readContent()"] e0f9ca74_1f15_9dd0_32d3_4493874f9cdd -->|calls| 9551636f_107c_5525_c2ac_6930ab7aab64 e1fd631d_8d14_d190_2463_40108ec003a4["assertHasInboundMessages()"] e0f9ca74_1f15_9dd0_32d3_4493874f9cdd -->|calls| e1fd631d_8d14_d190_2463_40108ec003a4 465668ef_fec3_d4d9_164f_24dc020645ba["assertHasOutboundMessages()"] e0f9ca74_1f15_9dd0_32d3_4493874f9cdd -->|calls| 465668ef_fec3_d4d9_164f_24dc020645ba style e0f9ca74_1f15_9dd0_32d3_4493874f9cdd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/HttpContentDecoderTest.java lines 633–658
@Test
public void testFullHttpRequest() {
// test that ContentDecoder can be used after the ObjectAggregator
HttpRequestDecoder decoder = new HttpRequestDecoder(4096, 4096, 5);
HttpObjectAggregator aggregator = new HttpObjectAggregator(1024);
HttpContentDecoder decompressor = new HttpContentDecompressor(0);
EmbeddedChannel channel = new EmbeddedChannel(decoder, aggregator, decompressor);
String headers = "POST / HTTP/1.1\r\n" +
"Content-Length: " + GZ_HELLO_WORLD.length + "\r\n" +
"Content-Encoding: gzip\r\n" +
"\r\n";
assertTrue(channel.writeInbound(Unpooled.copiedBuffer(headers.getBytes(), GZ_HELLO_WORLD)));
Queue<Object> req = channel.inboundMessages();
assertTrue(req.size() > 1);
int contentLength = 0;
contentLength = calculateContentLength(req, contentLength);
byte[] receivedContent = readContent(req, contentLength, true);
assertEquals(HELLO_WORLD, new String(receivedContent, CharsetUtil.US_ASCII));
assertHasInboundMessages(channel, true);
assertHasOutboundMessages(channel, false);
assertFalse(channel.finish());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testFullHttpRequest() do?
testFullHttpRequest() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpContentDecoderTest.java.
Where is testFullHttpRequest() defined?
testFullHttpRequest() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpContentDecoderTest.java at line 633.
What does testFullHttpRequest() call?
testFullHttpRequest() calls 4 function(s): assertHasInboundMessages, assertHasOutboundMessages, calculateContentLength, readContent.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free