testIdentity() — netty Function Reference
Architecture documentation for the testIdentity() function in HttpContentCompressorTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 1798a1a1_79cd_bbed_42a2_53eec55820a2["testIdentity()"] 32ab04b0_6c83_d4f7_6483_fd304f908331["HttpContentCompressorTest"] 1798a1a1_79cd_bbed_42a2_53eec55820a2 -->|defined in| 32ab04b0_6c83_d4f7_6483_fd304f908331 bdf032ba_93a9_0f83_122a_c24ea71efa75["release()"] 1798a1a1_79cd_bbed_42a2_53eec55820a2 -->|calls| bdf032ba_93a9_0f83_122a_c24ea71efa75 style 1798a1a1_79cd_bbed_42a2_53eec55820a2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/HttpContentCompressorTest.java lines 766–786
@Test
public void testIdentity() throws Exception {
EmbeddedChannel ch = new EmbeddedChannel(new HttpContentCompressor());
assertTrue(ch.writeInbound(newRequest()));
FullHttpResponse res = new DefaultFullHttpResponse(
HttpVersion.HTTP_1_1, HttpResponseStatus.OK,
Unpooled.copiedBuffer("Hello, World", CharsetUtil.US_ASCII));
int len = res.content().readableBytes();
res.headers().set(HttpHeaderNames.CONTENT_LENGTH, len);
res.headers().set(HttpHeaderNames.CONTENT_ENCODING, HttpHeaderValues.IDENTITY);
assertTrue(ch.writeOutbound(res));
FullHttpResponse response = ch.readOutbound();
assertEquals(String.valueOf(len), response.headers().get(HttpHeaderNames.CONTENT_LENGTH));
assertEquals(HttpHeaderValues.IDENTITY.toString(), response.headers().get(HttpHeaderNames.CONTENT_ENCODING));
assertEquals("Hello, World", response.content().toString(CharsetUtil.US_ASCII));
response.release();
assertTrue(ch.finishAndReleaseAll());
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testIdentity() do?
testIdentity() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpContentCompressorTest.java.
Where is testIdentity() defined?
testIdentity() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpContentCompressorTest.java at line 766.
What does testIdentity() call?
testIdentity() calls 1 function(s): release.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free