testDecodeResponseHeadersWithContentLength() — netty Function Reference
Architecture documentation for the testDecodeResponseHeadersWithContentLength() function in Http3FrameToHttpObjectCodecTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD fdfa6cf3_7f41_1d7a_85c4_f3b6d7d415b7["testDecodeResponseHeadersWithContentLength()"] 0358625f_2420_3fbe_f6d7_5ee2577ca675["Http3FrameToHttpObjectCodecTest"] fdfa6cf3_7f41_1d7a_85c4_f3b6d7d415b7 -->|defined in| 0358625f_2420_3fbe_f6d7_5ee2577ca675 style fdfa6cf3_7f41_1d7a_85c4_f3b6d7d415b7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http3/src/test/java/io/netty/handler/codec/http3/Http3FrameToHttpObjectCodecTest.java lines 872–890
@Test
public void testDecodeResponseHeadersWithContentLength() {
EmbeddedQuicStreamChannel ch = new EmbeddedQuicStreamChannel(new Http3FrameToHttpObjectCodec(false));
Http3Headers headers = new DefaultHttp3Headers();
headers.scheme(HttpScheme.HTTP.name());
headers.status(HttpResponseStatus.OK.codeAsText());
headers.setInt("content-length", 0);
assertTrue(ch.writeInbound(new DefaultHttp3HeadersFrame(headers)));
HttpResponse response = ch.readInbound();
assertThat(response.status(), is(HttpResponseStatus.OK));
assertThat(response.protocolVersion(), is(HttpVersion.HTTP_1_1));
assertFalse(response instanceof FullHttpResponse);
assertFalse(HttpUtil.isTransferEncodingChunked(response));
assertThat(ch.readInbound(), is(nullValue()));
assertFalse(ch.finish());
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does testDecodeResponseHeadersWithContentLength() do?
testDecodeResponseHeadersWithContentLength() is a function in the netty codebase, defined in codec-http3/src/test/java/io/netty/handler/codec/http3/Http3FrameToHttpObjectCodecTest.java.
Where is testDecodeResponseHeadersWithContentLength() defined?
testDecodeResponseHeadersWithContentLength() is defined in codec-http3/src/test/java/io/netty/handler/codec/http3/Http3FrameToHttpObjectCodecTest.java at line 872.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free