testDowngradeHeadersWithContentLength() — netty Function Reference
Architecture documentation for the testDowngradeHeadersWithContentLength() function in Http2StreamFrameToHttpObjectCodecTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD c20832f7_deaa_40b4_3e1e_a826735867c2["testDowngradeHeadersWithContentLength()"] f77629dd_309f_f368_8220_46ddc65ad871["Http2StreamFrameToHttpObjectCodecTest"] c20832f7_deaa_40b4_3e1e_a826735867c2 -->|defined in| f77629dd_309f_f368_8220_46ddc65ad871 style c20832f7_deaa_40b4_3e1e_a826735867c2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/Http2StreamFrameToHttpObjectCodecTest.java lines 309–328
@Test
public void testDowngradeHeadersWithContentLength() throws Exception {
EmbeddedChannel ch = new EmbeddedChannel(new Http2StreamFrameToHttpObjectCodec(true));
Http2Headers headers = new DefaultHttp2Headers();
headers.path("/");
headers.method("GET");
headers.setInt("content-length", 0);
assertTrue(ch.writeInbound(new DefaultHttp2HeadersFrame(headers)));
HttpRequest request = ch.readInbound();
assertEquals("/", request.uri());
assertEquals(HttpMethod.GET, request.method());
assertEquals(HttpVersion.HTTP_1_1, request.protocolVersion());
assertThat(request).isNotInstanceOf(FullHttpRequest.class);
assertFalse(HttpUtil.isTransferEncodingChunked(request));
assertNull(ch.readInbound());
assertFalse(ch.finish());
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does testDowngradeHeadersWithContentLength() do?
testDowngradeHeadersWithContentLength() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2StreamFrameToHttpObjectCodecTest.java.
Where is testDowngradeHeadersWithContentLength() defined?
testDowngradeHeadersWithContentLength() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2StreamFrameToHttpObjectCodecTest.java at line 309.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free