testUpgradeEmptyFullResponseWithTrailers() — netty Function Reference
Architecture documentation for the testUpgradeEmptyFullResponseWithTrailers() function in Http2StreamFrameToHttpObjectCodecTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 2a3ca6a9_36af_0214_fcd4_9fdd6e5dba28["testUpgradeEmptyFullResponseWithTrailers()"] f77629dd_309f_f368_8220_46ddc65ad871["Http2StreamFrameToHttpObjectCodecTest"] 2a3ca6a9_36af_0214_fcd4_9fdd6e5dba28 -->|defined in| f77629dd_309f_f368_8220_46ddc65ad871 style 2a3ca6a9_36af_0214_fcd4_9fdd6e5dba28 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/Http2StreamFrameToHttpObjectCodecTest.java lines 129–147
@Test
public void testUpgradeEmptyFullResponseWithTrailers() throws Exception {
EmbeddedChannel ch = new EmbeddedChannel(new Http2StreamFrameToHttpObjectCodec(true));
FullHttpResponse response = new DefaultFullHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK);
HttpHeaders trailers = response.trailingHeaders();
trailers.set("key", "value");
assertTrue(ch.writeOutbound(response));
Http2HeadersFrame headersFrame = ch.readOutbound();
assertEquals("200", headersFrame.headers().status().toString());
assertFalse(headersFrame.isEndStream());
Http2HeadersFrame trailersFrame = ch.readOutbound();
assertEquals("value", trailersFrame.headers().get("key").toString());
assertTrue(trailersFrame.isEndStream());
assertNull(ch.readOutbound());
assertFalse(ch.finish());
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does testUpgradeEmptyFullResponseWithTrailers() do?
testUpgradeEmptyFullResponseWithTrailers() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2StreamFrameToHttpObjectCodecTest.java.
Where is testUpgradeEmptyFullResponseWithTrailers() defined?
testUpgradeEmptyFullResponseWithTrailers() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2StreamFrameToHttpObjectCodecTest.java at line 129.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free