testLeadingWhiteSpacesControlCharGarbageChunk() — netty Function Reference
Architecture documentation for the testLeadingWhiteSpacesControlCharGarbageChunk() function in HttpResponseDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD a40e195f_ad5b_363f_9ec2_0e653658c163["testLeadingWhiteSpacesControlCharGarbageChunk()"] 90546a8c_51c4_a9dc_b6e8_695d29269596["HttpResponseDecoderTest"] a40e195f_ad5b_363f_9ec2_0e653658c163 -->|defined in| 90546a8c_51c4_a9dc_b6e8_695d29269596 style a40e195f_ad5b_363f_9ec2_0e653658c163 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/HttpResponseDecoderTest.java lines 954–975
@Test
public void testLeadingWhiteSpacesControlCharGarbageChunk() {
EmbeddedChannel channel = new EmbeddedChannel(new HttpResponseDecoder());
String responseWithIllegalChunk =
"HTTP/1.1 200 OK\r\n" +
"Transfer-Encoding: chunked\r\n\r\n" +
" \0\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 testLeadingWhiteSpacesControlCharGarbageChunk() do?
testLeadingWhiteSpacesControlCharGarbageChunk() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpResponseDecoderTest.java.
Where is testLeadingWhiteSpacesControlCharGarbageChunk() defined?
testLeadingWhiteSpacesControlCharGarbageChunk() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpResponseDecoderTest.java at line 954.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free