testDecodeResponseHeadersWithContentLength() — netty Function Reference
Architecture documentation for the testDecodeResponseHeadersWithContentLength() function in Http2StreamFrameToHttpObjectCodecTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 08a6a557_4f5e_f1a7_28ab_028c89d158b3["testDecodeResponseHeadersWithContentLength()"] f77629dd_309f_f368_8220_46ddc65ad871["Http2StreamFrameToHttpObjectCodecTest"] 08a6a557_4f5e_f1a7_28ab_028c89d158b3 -->|defined in| f77629dd_309f_f368_8220_46ddc65ad871 style 08a6a557_4f5e_f1a7_28ab_028c89d158b3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/Http2StreamFrameToHttpObjectCodecTest.java lines 762–780
@Test
public void testDecodeResponseHeadersWithContentLength() throws Exception {
EmbeddedChannel ch = new EmbeddedChannel(new Http2StreamFrameToHttpObjectCodec(false));
Http2Headers headers = new DefaultHttp2Headers();
headers.scheme(HttpScheme.HTTP.name());
headers.status(HttpResponseStatus.OK.codeAsText());
headers.setInt("content-length", 0);
assertTrue(ch.writeInbound(new DefaultHttp2HeadersFrame(headers)));
HttpResponse response = ch.readInbound();
assertEquals(HttpResponseStatus.OK, response.status());
assertEquals(HttpVersion.HTTP_1_1, response.protocolVersion());
assertThat(response).isNotInstanceOf(FullHttpResponse.class);
assertFalse(HttpUtil.isTransferEncodingChunked(response));
assertNull(ch.readInbound());
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-http2/src/test/java/io/netty/handler/codec/http2/Http2StreamFrameToHttpObjectCodecTest.java.
Where is testDecodeResponseHeadersWithContentLength() defined?
testDecodeResponseHeadersWithContentLength() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2StreamFrameToHttpObjectCodecTest.java at line 762.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free