testResetContentResponseWithTransferEncoding() — netty Function Reference
Architecture documentation for the testResetContentResponseWithTransferEncoding() function in HttpResponseDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 64c19164_5315_99f8_789e_806b31d232e2["testResetContentResponseWithTransferEncoding()"] 90546a8c_51c4_a9dc_b6e8_695d29269596["HttpResponseDecoderTest"] 64c19164_5315_99f8_789e_806b31d232e2 -->|defined in| 90546a8c_51c4_a9dc_b6e8_695d29269596 style 64c19164_5315_99f8_789e_806b31d232e2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/HttpResponseDecoderTest.java lines 565–585
@Test
public void testResetContentResponseWithTransferEncoding() {
EmbeddedChannel ch = new EmbeddedChannel(new HttpResponseDecoder());
assertTrue(ch.writeInbound(Unpooled.copiedBuffer(
"HTTP/1.1 205 Reset Content\r\n" +
"Transfer-Encoding: chunked\r\n" +
"\r\n" +
"0\r\n" +
"\r\n",
CharsetUtil.US_ASCII)));
HttpResponse res = ch.readInbound();
assertSame(HttpVersion.HTTP_1_1, res.protocolVersion());
assertEquals(HttpResponseStatus.RESET_CONTENT, res.status());
LastHttpContent lastContent = ch.readInbound();
assertFalse(lastContent.content().isReadable());
lastContent.release();
assertFalse(ch.finish());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testResetContentResponseWithTransferEncoding() do?
testResetContentResponseWithTransferEncoding() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpResponseDecoderTest.java.
Where is testResetContentResponseWithTransferEncoding() defined?
testResetContentResponseWithTransferEncoding() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpResponseDecoderTest.java at line 565.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free