testGarbageChunkAfterWhiteSpaces() — netty Function Reference
Architecture documentation for the testGarbageChunkAfterWhiteSpaces() function in HttpResponseDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 369699c4_8fd3_e000_b9f5_0479232bd423["testGarbageChunkAfterWhiteSpaces()"] 90546a8c_51c4_a9dc_b6e8_695d29269596["HttpResponseDecoderTest"] 369699c4_8fd3_e000_b9f5_0479232bd423 -->|defined in| 90546a8c_51c4_a9dc_b6e8_695d29269596 style 369699c4_8fd3_e000_b9f5_0479232bd423 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/HttpResponseDecoderTest.java lines 977–998
@Test
public void testGarbageChunkAfterWhiteSpaces() {
EmbeddedChannel channel = new EmbeddedChannel(new HttpResponseDecoder());
String responseWithIllegalChunk =
"HTTP/1.1 200 OK\r\n" +
"Transfer-Encoding: chunked\r\n\r\n" +
" 12345N1 ;\r\n";
channel.writeInbound(Unpooled.copiedBuffer(responseWithIllegalChunk, CharsetUtil.US_ASCII));
assertInstanceOf(HttpResponse.class, channel.readInbound());
// Ensure that the decoder generates the last chunk with correct decoder result.
LastHttpContent invalidChunk = channel.readInbound();
assertTrue(invalidChunk.decoderResult().isFailure());
invalidChunk.release();
// And no more messages should be produced by the decoder.
assertNull(channel.readInbound());
// .. even after the connection is closed.
assertFalse(channel.finish());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testGarbageChunkAfterWhiteSpaces() do?
testGarbageChunkAfterWhiteSpaces() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpResponseDecoderTest.java.
Where is testGarbageChunkAfterWhiteSpaces() defined?
testGarbageChunkAfterWhiteSpaces() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpResponseDecoderTest.java at line 977.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free